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/fr/web/api/window/ondevicelight/index.html | 34 ++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 files/fr/web/api/window/ondevicelight/index.html (limited to 'files/fr/web/api/window/ondevicelight') diff --git a/files/fr/web/api/window/ondevicelight/index.html b/files/fr/web/api/window/ondevicelight/index.html new file mode 100644 index 0000000000..4a4357ec9a --- /dev/null +++ b/files/fr/web/api/window/ondevicelight/index.html @@ -0,0 +1,34 @@ +--- +title: Window.ondevicelight +slug: Web/API/Window/ondevicelight +tags: + - API + - Ambient Light Events + - Experimental + - Propriété + - Reference +translation_of: Web/API/Window/ondevicelight +--- +
{{obsolete_header}}
+ +

Spécifie un écouteur d'événements pour recevoir des événements {{event ("devicelight")}}. Ces événements se produisent lorsque le capteur de niveau de lumière de l'appareil détecte une modification de l'intensité du niveau de lumière ambiante.

+ +

Syntaxe

+ +
window.ondevicelight = funcRef
+ +

funcRef est une fonction à appeler lorsque l'événement {{event("devicelight")}} se produit. Ces événements sont de type {{domxref("DeviceLightEvent")}}.

+ +

Compatibilité des navigateurs

+ + + +

{{Compat("api.Window.ondevicelight")}}

+ +

Voir également

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