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:34 UTC

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

Repository: cordova-plugin-battery-status
Updated Branches:
  refs/heads/master 362c457e2 -> ca143ac2e


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/ca143ac2
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/tree/ca143ac2
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/diff/ca143ac2

Branch: refs/heads/master
Commit: ca143ac2eeb08e8907a6611de94b940efb587a1b
Parents: 5558e84
Author: ldeluca <ld...@us.ibm.com>
Authored: Thu Feb 27 11:14:18 2014 -0500
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Mon Apr 28 23:05:21 2014 -0400

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


http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/blob/ca143ac2/doc/fr/index.md
----------------------------------------------------------------------
diff --git a/doc/fr/index.md b/doc/fr/index.md
new file mode 100644
index 0000000..c19e8c7
--- /dev/null
+++ b/doc/fr/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 inscrits
+
+Ce plugin fournit une implémentation d'une ancienne version de [Batterie Status événements API][1].
+
+ [1]: http://www.w3.org/TR/2011/WD-battery-status-20110915/
+
+Il ajoute les trois `window` des événements :
+
+*   batterystatus
+*   batterycritical
+*   batterylow
+
+## Installation
+
+    cordova plugin add org.apache.cordova.battery-status
+    
+
+## batterystatus
+
+L'évènement se déclenche lorsque le taux de charge de la batterie gagne ou perd au moins un pourcent, ou quand l'appareil est branché ou débranché.
+
+Le gestionnaire est appelé avec un objet contenant deux propriétés :
+
+*   **level** : le taux de charge de la batterie (0-100). *(Number)*
+
+*   **isPlugged** : un booléen indiquant si l'appareil est en cours de chargement ou non. *(Boolean)*
+
+Les applications doivent généralement utiliser `window.addEventListener` pour attacher un écouteur d'événements une fois le `deviceready` événement incendies. par exemple :
+
+### Plates-formes prises en charge
+
+*   Amazon Fire OS
+*   iOS
+*   Android
+*   BlackBerry 10
+*   Windows Phone 7 et 8
+*   Paciarelli
+
+### Notes au sujet de Windows Phone 7 et 8
+
+Windows Phone 7 ne fournit pas d'API native pour déterminer le niveau de la batterie, de ce fait la propriété `level` n'est pas disponible. La propriété `isPlugged` *est* quant à elle prise en charge.
+
+### Exemple
+
+    window.addEventListener("batterystatus", onBatteryStatus, false);
+    
+    function onBatteryStatus(info) {
+        // Handle the online event
+        console.log("Level: " + info.level + " isPlugged: " + info.isPlugged);
+    }
+    
+
+## batterycritical
+
+L'évènement se déclenche lorsque le pourcentage de charge de la batterie a atteint un seuil critique. Cette valeur est spécifique à l'appareil.
+
+Le gestionnaire `batterycritical` est appelé avec un objet contenant deux propriétés :
+
+*   **niveau**: le pourcentage de charge de la batterie (0-100). *(Nombre)*
+
+*   **isPlugged**: valeur booléenne qui indique si l'appareil n'est branché *(Boolean)*
+
+Les applications devraient en général utiliser `window.addEventListener` pour attacher un écouteur d'évènements, une fois l'évènement `deviceready` déclenché.
+
+### Plates-formes prises en charge
+
+*   Amazon Fire OS
+*   iOS
+*   Android
+*   BlackBerry 10
+*   Paciarelli
+
+### Exemple
+
+    window.addEventListener("batterycritical", onBatteryCritical, false);
+    
+    function onBatteryCritical(info) {
+        // Handle the battery critical event
+        alert("Battery Level Critical " + info.level + "%\nRecharge Soon!");
+    }
+    
+
+## batterylow
+
+L'évènement se déclenche lorsque le pourcentage de charge de la batterie a atteint un niveau faible, cette valeur est spécifique à l'appareil.
+
+Le gestionnaire `batterylow` est appelé avec un objet contenant deux propriétés :
+
+*   **niveau**: le pourcentage de charge de la batterie (0-100). *(Nombre)*
+
+*   **isPlugged**: valeur booléenne qui indique si l'appareil n'est branché *(Boolean)*
+
+Les applications devraient en général utiliser `window.addEventListener` pour attacher un écouteur d'évènements, une fois l'évènement `deviceready` déclenché.
+
+### Plates-formes prises en charge
+
+*   Amazon Fire OS
+*   iOS
+*   Android
+*   BlackBerry 10
+*   Paciarelli
+
+### Exemple
+
+    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


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

Posted by ag...@apache.org.
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