Skip to main content

SensorType

Namespace: Wisej.Hybrid.Shared.Sensors

Assembly: Wisej.Hybrid

Types of device sensors.

public enum SensorType : Enum

Fields

NameDescription
AccelerometerThe accelerometer sensor measures the acceleration of the device along its three axes. The data reported by the sensor represents how the user is moving the device.
BarometerThe barometer sensor measures the ambient air pressure. The data reported by the sensor represents the current air pressure. This data is reported the first time you start monitoring the sensor and then each time the pressure changes.
CompassThe compass sensor monitors the device's magnetic north heading.
GyroscopeThe gyroscope sensor measures the angular rotation speed around the device's three primary axes.
MagnetometerThe magnetometer sensor indicates the device's orientation relative to Earth's magnetic field.
OrientationThe orientation sensor monitors the orientation of a device in 3D space.
ShakeThe accelerometer is used to detect when the device is shaken.

Used By

NameDescription
DeviceSensors.IsSupportedGets whether the given SensorType is supported on the hybrid device.
DeviceSensors.IsMonitoringGets whether the given SensorType is available for monitoring on the hybrid device.
DeviceSensors.StartStarts monitoring the given SensorType on the hybrid device.
DeviceSensors.StopStops monitoring the given SensorType on the hybrid device.
SensorChangedEventArgs.SensorThe type of sensor that changed.