From 641a75fbc5a15724440dce3fc41c92cb1ef23699 Mon Sep 17 00:00:00 2001 From: MDN Date: Wed, 28 Apr 2021 00:11:21 +0000 Subject: [CRON] sync translated content --- .../web/api/window/ondevicelight/index.html | 100 +++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 files/pt-br/orphaned/web/api/window/ondevicelight/index.html (limited to 'files/pt-br/orphaned/web') diff --git a/files/pt-br/orphaned/web/api/window/ondevicelight/index.html b/files/pt-br/orphaned/web/api/window/ondevicelight/index.html new file mode 100644 index 0000000000..6e8733e6cb --- /dev/null +++ b/files/pt-br/orphaned/web/api/window/ondevicelight/index.html @@ -0,0 +1,100 @@ +--- +title: Window.ondevicelight +slug: orphaned/Web/API/Window/ondevicelight +translation_of: Web/API/Window/ondevicelight +original_slug: Web/API/Window/ondevicelight +--- +
{{APIRef}}
+ +

Especifica um event listener para receber eventos {{event("devicelight")}}. Esses eventos ocorrem quando um dispositivo com sensores de nível de luz detecta uma mudança na intensidade do nível de luz do ambiente.

+ +

Sintaxe

+ +
window.ondevicelight = funcRef
+ +

Onde funcRef é a função a ser chamada quando o evento {{event("devicelight")}} ocorre. Estes eventos são do tipo {{domxref("DeviceLightEvent")}}.

+ +

Especificações

+ + + + + + + + + + + + + + + + +
SpecificaçãoStatusComment
{{SpecName('AmbientLight', '#event-handlers', 'Ambient Light Events')}}{{Spec2('AmbientLight')}}Initial definition
+ +

Compatibilidade com os Navegadores

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
FeatureChromeEdgeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{CompatNo}}{{CompatVersionUnknown}}{{CompatGeckoDesktop("22.0")}}[1]{{CompatNo}}{{CompatNo}}{{CompatNo}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidChrome for AndroidEdgeFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{CompatNo}}{{CompatNo}}{{CompatUnknown}}{{CompatGeckoMobile("15.0")}}[1]{{CompatNo}}{{CompatNo}}{{CompatNo}}
+
+ +

[1] The {{event("devicelight")}} event is implemented and by preference enabled by default in Firefox Mobile for Android (15.0) and in Firefox OS (B2G). Starting with Gecko 22.0 {{geckoRelease("22.0")}}, a desktop implementation for Mac OS X is also available. Support for Windows 7 is in progress (see {{bug(754199)}}).

+ +

Veja também

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