diff options
Diffstat (limited to 'files/pt-br/web/api/batterymanager/chargingchange_event/index.html')
-rw-r--r-- | files/pt-br/web/api/batterymanager/chargingchange_event/index.html | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/files/pt-br/web/api/batterymanager/chargingchange_event/index.html b/files/pt-br/web/api/batterymanager/chargingchange_event/index.html new file mode 100644 index 0000000000..af17a070c2 --- /dev/null +++ b/files/pt-br/web/api/batterymanager/chargingchange_event/index.html @@ -0,0 +1,36 @@ +--- +title: BatteryManager.onchargingchange +slug: Web/API/BatteryManager/chargingchange_event +tags: + - API + - Battery API + - Event Handler + - Propriedade + - Referencia +translation_of: Web/API/BatteryManager/onchargingchange +original_slug: Web/API/BatteryManager/onchargingchange +--- +<p>{{APIRef("Battery API")}}</p> + +<p>Especifica um <em>event listener</em> para receber eventos {{event("chargingchange")}}. Esses eventos ocorrem quando o estado {{domxref("BatteryManager.charging", "charging")}} (carregando) da bateria é atualizado.</p> + +<h2 id="Syntax" name="Syntax">Sintaxe</h2> + +<pre class="syntaxbox">navigator.battery.onchargingchange = funcRef</pre> + +<p>Onde <code><em>funcRef</em></code> é uma função para ser chamada quando o evento {{event("chargingchange")}} ocorre.</p> + +<h2 id="Especificações">Especificações</h2> + +<p>{{page("/pt-BR/docs/Web/API/BatteryManager","Specifications")}}</p> + +<h2 id="Browser_compatibility">Compatibilidade com navegadores</h2> + +<p>{{page("/pt-BR/docs/Web/API/BatteryManager","Browser_compatibility")}}</p> + +<h2 id="Veja_também">Veja também</h2> + +<ul> + <li>{{domxref("BatteryManager")}}</li> + <li>{{domxref("Navigator.battery")}}</li> +</ul> |