-
Notifications
You must be signed in to change notification settings - Fork 2
Device and View Metrics
Bob Dickinson edited this page Aug 25, 2014
·
4 revisions
Synchro provides the following device metrics (via session.DeviceMetrics). It should be noted that device metrics do not change during a session (or for a given device).
The height and width values in device metrics are based on the natural orientation of the device, and will not change when the device is rotated (for current height/width, see view metrics below).
-
os- Windows, WinPhone, Android, iOS osNamedeviceName-
deviceType- Phone, Tablet -
deviceClass- Phone, Phablet, MiniTablet, Tablet -
naturalOrientation- Portrait, Landscape widthUnitsheightUnitswidthDeviceUnitsheightDeviceUnitsdeviceScalingFactorscalingFactorwidthInchesheightInches
In addition, the following view metrics are provided (via session.ViewMetrics). View metrics change whenever the viewport of the Synchro application changes, for example, when the orientation of the device changes, or when a Windows 8 application changes mode (between FullScreen, Snapped, and Filled).
-
orientation- Portrait, Landscape widthUnitsheightUnitswidthInchesheightInches