Limited Availability
6 featuresThe Accelerometer, LinearAccelerationSensor and GravitySensor APIs read the acceleration applied to a device in three dimensions, either including the effect of gravity, without its effect, or only its effect, respectively.
The AmbientLightSensor API returns the current light level in lux of the ambient light level around the device.
The Gyroscope API reads the angular velocity of a device in three dimensions.
The Magnetometer API reads magnetic field sensor data from the device's magnetometer.
The AbsoluteOrientationSensor and RelativeOrientationSensor APIs describe the physical orientation of a device in three-dimensional space, either in relation to the Earth's coordinate system or in relation to the device's own orientation, respectively.
The CreateVirtualSensor WebDriver command creates a virtual sensor for testing applications that use sensor APIs, without the need for real device sensors.