Results 1 - 4 of 4

Ambient Light Events

The ambient light events are a handy way to make a web page or an application aware of any change in the light intensity. It allows them to react to such a change, for example by changing the color contrast of the User Interface (UI) or by changing the exposure necessary to take a picture.
Ambient Light


The DeviceLightEvent provides web developers with information from photo sensors or similiar detectors about ambient light levels near the device. For example this may be useful to adjust the screen's brightness based on the current ambient light level in order to save energy or provide better readability.
Ambient Light Events API Experimental Expérimental Interface NeedsBetterSpecLink NeedsMarkupWork


The value property provides the current level of the ambient light.
Ambient Light Events API Experimental NeedsBetterSpecLink NeedsMarkupWork Property


Specifies an event listener to receive devicelight events. These events occur when the device's light level sensor detects a change in the intensity of the ambient light level.
Ambient Light Events API Experimental NeedsMarkupWork Property Reference