From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/api/devicelightevent/index.html | 58 ++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 files/ja/web/api/devicelightevent/index.html (limited to 'files/ja/web/api/devicelightevent/index.html') diff --git a/files/ja/web/api/devicelightevent/index.html b/files/ja/web/api/devicelightevent/index.html new file mode 100644 index 0000000000..58829fc7c3 --- /dev/null +++ b/files/ja/web/api/devicelightevent/index.html @@ -0,0 +1,58 @@ +--- +title: DeviceLightEvent +slug: Web/API/DeviceLightEvent +tags: + - API + - Ambient Light Events + - Experimental + - Interface +translation_of: Web/API/DeviceLightEvent +--- +
{{apiref("Ambient Light Events")}}{{SeeCompatTable}}
+ +

DeviceLightEvent は、端末付近の環境光のレベルについての情報を、写真センサーやそれと類似した検知機を通してウェブ開発者に提供します。たとえば、このイベントは、エネルギーを節約したり、より良い視認性を提供したりするために、現在の環境光のレベルに応じて画面の明るさを調節するのに役立ちます。

+ +

プロパティ

+ +
+
{{domxref("DeviceLightEvent.value")}}
+
{{interwiki("wikipedia", "ルクス")}}で表した環境光のレベル
+
+ +

+ +
window.addEventListener('devicelight', function(event) {
+  console.log(event.value);
+});
+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName('AmbientLight', '', 'Ambient Light Events')}}{{Spec2('AmbientLight')}}初回定義
+ +

ブラウザーの対応

+ + + +

{{Compat("api.DeviceLightEvent")}}

+ +

関連情報

+ + -- cgit v1.2.3-54-g00ecf