DeviceSensorInfo
Namespace: Wisej.Hybrid
Assembly: Wisej.Hybrid
Represents information about device sensors. This class provides properties to check if specific sensors are supported by a device.
- C#
- VB.NET
public class DeviceSensorInfo : DeviceInfoBase
Public Class DeviceSensorInfo
Inherits 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.
| Parameter | Type | Description |
|---|---|---|
| info | Object | Dynamic object containing sensor support information. |
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.