AmbientLightSensor.AmbientLightSensor()

您正在阅读此内容的英文版本,因为该语系尚未翻译。 帮助我们翻译此文章吧!

非标准
该特性是非标准的,请尽量不要在生产环境中使用它!

通过 AmbinentLightSensor() 构造函数可以创建一个 AmbientLightSensor 的实例.

语法

var ambientLightSensor = new AmbientLightSensor(options)

参数

options 可选
以下是设置属性:
  • frequency:  TBD

规范

Specification Status Comment
Ambient Light Sensor
AmbinentLightSensor()
Candidate Recommendation Initial definition.

浏览器兼容性

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!
Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 54.0 ? ? ? ?
Feature Android Android Webview Firefox Mobile (Gecko) Firefox OS IE Mobile Opera Mobile Safari Mobile Chrome for Android
Basic support 未实现 54.0 ? ? ? ? ? 54.0