-
Notifications
You must be signed in to change notification settings - Fork 2
Device and View Metrics
Synchro provides both device and view metrics via the Synchro session object, specifically via session.DeviceMetrics and session.ViewMetrics.
Device metrics describe characteristics of the physical device that is connecting to Synchro. 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).
The following device metrics are provided:
-
os- Windows, WinPhone, Android, iOS osNamedeviceName-
deviceType- Phone, Tablet -
deviceClass- Phone, Phablet, MiniTablet, Tablet -
naturalOrientation- Portrait, Landscape widthUnitsheightUnitswidthDeviceUnitsheightDeviceUnitsdeviceScalingFactorscalingFactorwidthInchesheightInches
View metrics describe the current state of the device and the viewport in which Synchro is rendered. View metrics change whenever the device state or Synchro application viewport change, for example, when the orientation of the device changes, or when a Windows 8 application changes mode (between FullScreen, Snapped, and Filled).
The following view metrics are provided:
-
orientation- Portrait, Landscape (current orientation of the device) widthUnitsheightUnitswidthInchesheightInches