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

Initializes a new instance of the DeviceSensorInfo class.

Properties

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

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

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

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

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

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

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

Methods

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

ParameterTypeDescription

info

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.

Last updated