Skip to main content

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.

public class DeviceSensorInfo : DeviceInfoBase

Access this class through the Info singleton.

Constructors

Instance memberDeviceSensorInfo()

Initializes a new instance of the DeviceSensorInfo class.

Properties

Instance memberIsAccelerometerSupported

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

Instance memberIsBarometerSupported

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

Instance memberIsCompassSupported

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

Instance memberIsGyroscopeSupported

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

Instance memberIsMagnetometerSupported

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

Instance memberIsOrientationSupported

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

Instance memberIsShakeSupported

Boolean: Gets a value indicating whether shake detection is supported.

Methods

Instance memberOnWebUpdate(info)

Updates sensor information based on the data provided from a web source.

ParameterTypeDescription
infoObjectDynamic 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.