You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2014/04/29 05:05:35 UTC

[2/2] git commit: Lisa testing pulling in plugins for plugin: cordova-plugin-battery-status

Lisa testing pulling in plugins for plugin: cordova-plugin-battery-status


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/commit/5558e84c
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/tree/5558e84c
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/diff/5558e84c

Branch: refs/heads/master
Commit: 5558e84c91b0f8df45abd7e2b4184208b5dae391
Parents: 362c457
Author: ldeluca <ld...@us.ibm.com>
Authored: Wed Feb 26 09:35:30 2014 -0500
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Mon Apr 28 23:05:21 2014 -0400

----------------------------------------------------------------------
 doc/es/index.md | 129 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 129 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/blob/5558e84c/doc/es/index.md
----------------------------------------------------------------------
diff --git a/doc/es/index.md b/doc/es/index.md
new file mode 100644
index 0000000..8bb93da
--- /dev/null
+++ b/doc/es/index.md
@@ -0,0 +1,129 @@
+<!---
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+
+# org.apache.Cordova.Battery-estado
+
+Este plugin proporciona una implementación de una versión antigua de la [Batería estado eventos API][1].
+
+ [1]: http://www.w3.org/TR/2011/WD-battery-status-20110915/
+
+Agrega los siguientes tres `window` eventos:
+
+*   batterystatus
+*   batterycritical
+*   batterylow
+
+## Instalación
+
+    cordova plugin add org.apache.cordova.battery-status
+    
+
+## HomeScreen PlusPlus
+
+Este evento se desencadena cuando el porcentaje de carga de la batería cambia en menos de 1 por ciento, o si el dispositivo está conectado o desconectado.
+
+El controlador de estado de batería se pasa un objeto que contiene dos propiedades:
+
+*   **nivel**: el porcentaje de carga de la batería (0-100). *(Número)*
+
+*   **isPlugged**: un valor booleano que indica si el dispositivo está conectado pulg *(Boolean)*
+
+Las aplicaciones normalmente deben utilizar `window.addEventListener` para conectar un detector de eventos una vez el `deviceready` evento incendios. por ejemplo:
+
+### Plataformas soportadas
+
+*   Amazon fuego OS
+*   iOS
+*   Android
+*   BlackBerry 10
+*   Windows Phone 7 y 8
+*   Tizen
+
+### Windows Phone 7 y 8 rarezas
+
+Windows Phone 7 no proporciona API nativas para determinar el nivel de batería, así que el `level` propiedad no está disponible. El `isPlugged` parámetro *es* apoyado.
+
+### Ejemplo
+
+    window.addEventListener("batterystatus", onBatteryStatus, false);
+    
+    function onBatteryStatus(info) {
+        // Handle the online event
+        console.log("Level: " + info.level + " isPlugged: " + info.isPlugged);
+    }
+    
+
+## batterycritical
+
+El evento se desencadena cuando el porcentaje de carga de la batería haya alcanzado el umbral de batería crítica. El valor es específica del dispositivo.
+
+El `batterycritical` controlador se le pasa un objeto que contiene dos propiedades:
+
+*   **nivel**: el porcentaje de carga de la batería (0-100). *(Número)*
+
+*   **isPlugged**: un valor booleano que indica si el dispositivo está conectado pulg *(Boolean)*
+
+Las aplicaciones normalmente deben utilizar `window.addEventListener` para conectar un detector de eventos una vez el `deviceready` evento incendios.
+
+### Plataformas soportadas
+
+*   Amazon fuego OS
+*   iOS
+*   Android
+*   BlackBerry 10
+*   Tizen
+
+### Ejemplo
+
+    window.addEventListener("batterycritical", onBatteryCritical, false);
+    
+    function onBatteryCritical(info) {
+        // Handle the battery critical event
+        alert("Battery Level Critical " + info.level + "%\nRecharge Soon!");
+    }
+    
+
+## batterylow
+
+El evento se desencadena cuando el porcentaje de carga de la batería haya alcanzado el umbral de batería baja, el valor específico del dispositivo.
+
+El `batterylow` controlador se le pasa un objeto que contiene dos propiedades:
+
+*   **nivel**: el porcentaje de carga de la batería (0-100). *(Número)*
+
+*   **isPlugged**: un valor booleano que indica si el dispositivo está conectado pulg *(Boolean)*
+
+Las aplicaciones normalmente deben utilizar `window.addEventListener` para conectar un detector de eventos una vez el `deviceready` evento incendios.
+
+### Plataformas soportadas
+
+*   Amazon fuego OS
+*   iOS
+*   Android
+*   BlackBerry 10
+*   Tizen
+
+### Ejemplo
+
+    window.addEventListener("batterylow", onBatteryLow, false);
+    
+    function onBatteryLow(info) {
+        // Handle the battery low event
+        alert("Battery Level Low " + info.level + "%");
+    }
\ No newline at end of file