DeviceSensorInfo
Wisej.Hybrid.DeviceSensorInfo
Namespace: Wisej.Hybrid
Assembly: Wisej.Hybrid (3.5.0.0)
Represents information about device sensors. This class provides properties to check if specific sensors are supported by a device.
public class DeviceSensorInfo : DeviceInfoBase
Access this class through the Info singleton.
Constructors
DeviceSensorInfo()

Initializes a new instance of the DeviceSensorInfo class.
Properties
IsAccelerometerSupported

Boolean: Gets a value indicating whether the accelerometer is supported.
IsBarometerSupported

Boolean: Gets a value indicating whether the barometer is supported.
IsCompassSupported

Boolean: Gets a value indicating whether the compass is supported.
IsGyroscopeSupported

Boolean: Gets a value indicating whether the gyroscope is supported.
IsMagnetometerSupported

Boolean: Gets a value indicating whether the magnetometer is supported.
IsOrientationSupported

Boolean: Gets a value indicating whether the device orientation is supported.
IsShakeSupported

Boolean: Gets a value indicating whether shake detection is supported.
Methods
OnWebUpdate(info)

Updates sensor information based on the data provided from a web source.
This method expects the 'info' parameter to have properties matching the sensor names, and their values should be strings that can be parsed to booleans.
Last updated