aboutsummaryrefslogtreecommitdiff
path: root/files/es/web/api/batterymanager/charging/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/es/web/api/batterymanager/charging/index.html')
-rw-r--r--files/es/web/api/batterymanager/charging/index.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/files/es/web/api/batterymanager/charging/index.html b/files/es/web/api/batterymanager/charging/index.html
new file mode 100644
index 0000000000..8295785a2c
--- /dev/null
+++ b/files/es/web/api/batterymanager/charging/index.html
@@ -0,0 +1,28 @@
+---
+title: BatteryManager.charging
+slug: Web/API/BatteryManager/charging
+tags:
+ - Apps
+ - Batería
+ - Battery
+ - Firefox OS
+ - Mobile
+ - Móvil
+ - WebAPI
+translation_of: Web/API/BatteryManager/charging
+---
+<p>{{ ApiRef() }}</p>
+<h2 id="Summary" name="Summary">Resumen</h2>
+<p>Un valor boleano indicando si o no esta cargando la batería del dispositivo (está conectado el cargador).</p>
+<h2 id="Syntax" name="Syntax">Sintaxis</h2>
+<pre class="syntaxbox">var <em>charging</em> = navigator.battery.charging</pre>
+<p>Valor de retorno, <code>charging</code> indica si o no la batería esta siendo cargada; si la batería se está cargando (o si no hay batería), este valor es <code>true</code>. De lo contrario el valor es <code>false</code>.</p>
+<h2 id="Specifications">Specifications</h2>
+<p>{{page("/en-US/docs/Web/API/BatteryManager","Specifications")}}</p>
+<h2 id="Browser_compatibility">Browser compatibility</h2>
+<p>{{page("/en-US/docs/Web/API/BatteryManager","Browser_compatibility")}}</p>
+<h2 id="See_also">See also</h2>
+<ul>
+ <li>{{domxref("BatteryManager")}}</li>
+ <li>{{domxref("window.navigator.battery","navigator.battery")}}</li>
+</ul>