DeviceSensorType Enum
The type of a sensor of the device (https://w3c.github.io/sensors/#virtual-sensor-type), read by the sensor objects of the documents and by the device orientation and motion events.
public enum DeviceSensorTypeFields
| Name | Value | Description |
|---|---|---|
Accelerometer | 0 | The accelerometer (accelerometer): the acceleration of the device including the gravity, in m/s², read by Accelerometer and devicemotion (accelerationIncludingGravity). |
LinearAcceleration | 1 | The linear acceleration sensor (linear-acceleration): the acceleration without the gravity, in m/s², read by LinearAccelerationSensor and devicemotion (acceleration). |
Gravity | 2 | The gravity sensor (gravity): the acceleration due to the gravity, in m/s², read by GravitySensor. |
Gyroscope | 3 | The gyroscope (gyroscope): the angular velocity, in rad/s, read by Gyroscope and devicemotion (rotationRate, in deg/s). |
Magnetometer | 4 | The magnetometer (magnetometer): the magnetic field, in µT, read by Magnetometer. |
UncalibratedMagnetometer | 5 | The uncalibrated magnetometer (uncalibrated-magnetometer): the magnetic field and the hard iron distortion correction, in µT, read by UncalibratedMagnetometer. |
AmbientLight | 6 | The ambient light sensor (ambient-light): the illuminance, in lux, read by AmbientLightSensor. |
Proximity | 7 | The proximity sensor (proximity): the distance to the closest object, in cm, read by ProximitySensor. |
AbsoluteOrientation | 8 | The absolute orientation sensor (absolute-orientation): the orientation relative to the Earth, as Euler angles in degrees, read by AbsoluteOrientationSensor and deviceorientationabsolute. |
RelativeOrientation | 9 | The relative orientation sensor (relative-orientation): the orientation relative to a stationary frame, as Euler angles in degrees, read by RelativeOrientationSensor and deviceorientation. |