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 (view on caniuse.com)
- 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 (dist) - Edit the feature - Report an issue about this feature