/deviceapitest

Created with StackBlitz ⚡️

Primary LanguageJavaScript

deviceapitest

Edit on StackBlitz ⚡️ The Ambient Light API allows developers to access the light sensor on the device. for example, data from the Ambient Light API can be used to automatically switch between “day” and “night” modes.

Browser Support for The Ambient Light API: FIREFOX BETA FOR ANDROID

please enable ambient light feature in browser before running this demo. ambient light feature can be enable by accessing browser config (type about:config and look for ambient light feature)