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 DeviceSensorType

Fields

NameValueDescription
Accelerometer0The accelerometer (accelerometer): the acceleration of the device including the gravity, in m/s², read by Accelerometer and devicemotion (accelerationIncludingGravity).
LinearAcceleration1The linear acceleration sensor (linear-acceleration): the acceleration without the gravity, in m/s², read by LinearAccelerationSensor and devicemotion (acceleration).
Gravity2The gravity sensor (gravity): the acceleration due to the gravity, in m/s², read by GravitySensor.
Gyroscope3The gyroscope (gyroscope): the angular velocity, in rad/s, read by Gyroscope and devicemotion (rotationRate, in deg/s).
Magnetometer4The magnetometer (magnetometer): the magnetic field, in µT, read by Magnetometer.
UncalibratedMagnetometer5The uncalibrated magnetometer (uncalibrated-magnetometer): the magnetic field and the hard iron distortion correction, in µT, read by UncalibratedMagnetometer.
AmbientLight6The ambient light sensor (ambient-light): the illuminance, in lux, read by AmbientLightSensor.
Proximity7The proximity sensor (proximity): the distance to the closest object, in cm, read by ProximitySensor.
AbsoluteOrientation8The absolute orientation sensor (absolute-orientation): the orientation relative to the Earth, as Euler angles in degrees, read by AbsoluteOrientationSensor and deviceorientationabsolute.
RelativeOrientation9The relative orientation sensor (relative-orientation): the orientation relative to a stationary frame, as Euler angles in degrees, read by RelativeOrientationSensor and deviceorientation.