AmbientLightSensor.illuminance

This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The illuminance property of the AmbientLightSensor interface returns a Number indicating the current light level.

Syntax

var level = AmbientLightSensor.illuminance

Value

A Number indicating the current light level.

Example

// TBD

Specifications

Specification Status Comment
Ambient Light Sensor
The definition of 'illuminance' in that specification.
Working Draft Initial definition.

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support54 ? ? ? ? ?
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support5454 ? ? ? ? ?

Document Tags and Contributors

Contributors to this page: connorshea, fscholz, david_ross, jpmedley
Last updated by: connorshea,