DeviceSensors
Wisej.Hybrid.DeviceSensors
Last updated
Wisej.Hybrid.DeviceSensors
Last updated
Namespace: Wisej.Hybrid
Assembly: Wisej.Hybrid (3.5.0.0)
Provides integrations to interact with device sensors.
Access this class through the Device singleton.
Initializes a new instance of DeviceSensors and attaches to sensor events.
Gets whether the given SensorType is available for monitoring on the hybrid device.
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.
type
The type of sensor.
Returns: Boolean. True if the given SensorType is supported.
Starts monitoring the given SensorType on the hybrid device.
type
The type of sensor.
Stops monitoring the given SensorType on the hybrid device.
type
The type of sensor.
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.
Deprecated: This event will be removed in future releases in favor of sensor-specific events. EventHandler<SensorChangedEventArgs> Fires when a sensor's reading changes.