DeviceSensors

Wisej.Hybrid.DeviceSensors

Namespace: Wisej.Hybrid

Assembly: Wisej.Hybrid (3.5.0.0)

Provides integrations to interact with device sensors.

public class DeviceSensors

Access this class through the Device singleton.

Constructors

Initializes a new instance of DeviceSensors and attaches to sensor events.

Methods

Gets whether the given SensorType is available for monitoring on the hybrid device.

ParameterTypeDescription

type

The type of sensor.

Returns: Boolean. True if the given SensorType is available for monitoring.

Gets whether the given SensorType is supported on the hybrid device.

ParameterTypeDescription

type

The type of sensor.

Returns: Boolean. True if the given SensorType is supported.

Starts monitoring the given SensorType on the hybrid device.

ParameterTypeDescription

type

The type of sensor.

Stops monitoring the given SensorType on the hybrid device.

ParameterTypeDescription

type

The type of sensor.

Events

EventHandler<AccelerometerChangedEventArgs> Occurs when accelerometer reading changes.

EventHandler<BarometerChangedEventArgs> Occurs when barometer reading changes.

EventHandler<CompassChangedEventArgs> Occurs when compass reading changes.

EventHandler<GyroscopeChangedEventArgs> Occurs when gyroscope reading changes.

EventHandler<MagnetometerChangedEventArgs> Occurs when magnetometer reading changes.

EventHandler<OrientationSensorChangedEventArgs> Occurs when the orientation sensor reading changes.

EventHandler Occurs when the device is shaken.

Last updated