AmbientLightSensor.AmbientLightSensor()

这篇翻译不完整。请帮忙从英语翻译这篇文章

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

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

语法

var ambientLightSensor = new AmbientLightSensor(options)

参数

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

规范

Specification Status Comment
Ambient Light Sensor
AmbinentLightSensor()
Working Draft 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

文档标签和贡献者

此页面的贡献者: shockw4ver
最后编辑者: shockw4ver,