Ambient light sensor
Limited availability
The AmbientLightSensor
interface returns the current light level in lux of the ambient light level around the device.
Learning resources on MDN
Browser support
- Chrome ❌
- Chrome Android ❌
- Edge ❌
- Firefox ❌
- Firefox for Android ❌
- Safari ❌
- Safari on iOS ❌
Specifications
- Ambient Light Sensor, from Devices and Sensors Working Group (W3C).
View web-platform-tests results for this feature - View the feature source file - Edit the feature - Report an issue about this feature