aboutsummaryrefslogtreecommitdiff
path: root/files/pt-br/web/api/batterymanager/chargingtimechange_event/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/pt-br/web/api/batterymanager/chargingtimechange_event/index.html')
-rw-r--r--files/pt-br/web/api/batterymanager/chargingtimechange_event/index.html36
1 files changed, 36 insertions, 0 deletions
diff --git a/files/pt-br/web/api/batterymanager/chargingtimechange_event/index.html b/files/pt-br/web/api/batterymanager/chargingtimechange_event/index.html
new file mode 100644
index 0000000000..a8fa2fe25f
--- /dev/null
+++ b/files/pt-br/web/api/batterymanager/chargingtimechange_event/index.html
@@ -0,0 +1,36 @@
+---
+title: BatteryManager.onchargingtimechange
+slug: Web/API/BatteryManager/chargingtimechange_event
+tags:
+ - API
+ - Battery API
+ - Event Handler
+ - Propriedade
+ - Referencia
+translation_of: Web/API/BatteryManager/onchargingtimechange
+original_slug: Web/API/BatteryManager/onchargingtimechange
+---
+<p>{{APIRef("Battery API")}}</p>
+
+<p>Especifica um <em>event listener</em> para receber eventos {{event("chargingtimechange")}}. Esses eventos ocorrem quando a propriedade {{domxref("BatteryManager.chargingTime","chargingTime")}} (tempo de carregamento) da bateria é atualizada.</p>
+
+<h2 id="Syntax" name="Syntax">Sintaxe</h2>
+
+<pre class="syntaxbox">navigator.battery.onchargingtimechange = funcRef</pre>
+
+<p>Onde <code><em>funcRef</em></code> é uma função para ser chamada quando o evento {{event("chargingtimechange")}} 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>