DeviceSensors
Wisej.Hybrid.DeviceSensors
Namespace: Wisej.Hybrid
Assembly: Wisej.Hybrid (3.5.0.0)
Provides integrations to interact with device sensors.
public class DeviceSensorsPublic Class DeviceSensorsAccess this class through the Device singleton.
Constructors
DeviceSensors()
Initializes a new instance of DeviceSensors and attaches to sensor events.
Methods
IsMonitoring(type)
Gets whether the given SensorType is available for monitoring on the hybrid device.
Returns: Boolean. True if the given SensorType is available for monitoring.
IsSupported(type)
Gets whether the given SensorType is supported on the hybrid device.
Returns: Boolean. True if the given SensorType is supported.
Start(type)
Starts monitoring the given SensorType on the hybrid device.
Stop(type)
Stops monitoring the given SensorType on the hybrid device.
Events
AccelerometerChanged
EventHandler<AccelerometerChangedEventArgs> Occurs when accelerometer reading changes.
BarometerChanged
EventHandler<BarometerChangedEventArgs> Occurs when barometer reading changes.
CompassChanged
EventHandler<CompassChangedEventArgs> Occurs when compass reading changes.
GyroscopeChanged
EventHandler<GyroscopeChangedEventArgs> Occurs when gyroscope reading changes.
MagnetometerChanged
EventHandler<MagnetometerChangedEventArgs> Occurs when magnetometer reading changes.
OrientationSensorChanged
EventHandler<OrientationSensorChangedEventArgs> Occurs when the orientation sensor reading changes.
ReadingChanged
Deprecated: This event will be removed in future releases in favor of sensor-specific events. EventHandler<SensorChangedEventArgs> Fires when a sensor's reading changes.
Shake
EventHandler Occurs when the device is shaken.
Last updated