Web platform features explorer

Ambient light sensor

Limited availability
Tags: api html http Groups: Sensors

The AmbientLightSensor interface returns the current light level in lux of the ambient light level around the device.

Browser support (view on caniuse.com)

  • Chrome
  • Chrome Android
  • Edge
  • Firefox
  • Firefox for Android
  • Safari
  • Safari on iOS