AmbientLightSensor: AmbientLightSensor() コンストラクター
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental: これは実験的な機能です。
本番で使用する前にブラウザー互換性一覧表をチェックしてください。
AmbientLightSensor() コンストラクターは、現在の光レベル、すなわちホストデバイス周辺の環境光の照度を返す新しい AmbientLightSensor オブジェクトを生成します。
構文
js
new AmbientLightSensor()
new AmbientLightSensor(options)
引数
options省略可-
現在、1 個のオプションのみに対応しています。
例外
SecurityErrorDOMException-
この機能の使用が 権限ポリシー によりブロックされまし
仕様書
| Specification |
|---|
| Ambient Light Sensor> # dom-ambientlightsensor-ambientlightsensor> |
ブラウザーの互換性
関連情報
readingイベント