Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EA48711023 for ; Wed, 4 Jun 2014 23:37:36 +0000 (UTC) Received: (qmail 68561 invoked by uid 500); 4 Jun 2014 23:37:36 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 68533 invoked by uid 500); 4 Jun 2014 23:37:36 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 68526 invoked by uid 99); 4 Jun 2014 23:37:36 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jun 2014 23:37:36 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 93D6194A043; Wed, 4 Jun 2014 23:37:36 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: steven@apache.org To: commits@cordova.apache.org Message-Id: <220e357b09da4d41ae701cc8e26e0dda@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: git commit: CB-6127 Spanish and French Translations added. Github close #10. Github close #12. Github close #11 Date: Wed, 4 Jun 2014 23:37:36 +0000 (UTC) Repository: cordova-plugin-device-motion Updated Branches: refs/heads/master 576fe6ea4 -> 2da22a687 CB-6127 Spanish and French Translations added. Github close #10. Github close #12. Github close #11 Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/commit/2da22a68 Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/tree/2da22a68 Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/diff/2da22a68 Branch: refs/heads/master Commit: 2da22a6872b5475d8a8f41c5b4f419fc208e7c6a Parents: 576fe6e Author: ldeluca Authored: Wed Feb 26 09:35:46 2014 -0500 Committer: Steven Gill Committed: Wed Jun 4 16:37:23 2014 -0700 ---------------------------------------------------------------------- doc/de/index.md | 146 +++++++++++++++++++++++++++++++++++++++++++++++++++ doc/es/index.md | 146 +++++++++++++++++++++++++++++++++++++++++++++++++++ doc/fr/index.md | 146 +++++++++++++++++++++++++++++++++++++++++++++++++++ doc/it/index.md | 146 +++++++++++++++++++++++++++++++++++++++++++++++++++ doc/ja/index.md | 146 +++++++++++++++++++++++++++++++++++++++++++++++++++ doc/ko/index.md | 146 +++++++++++++++++++++++++++++++++++++++++++++++++++ doc/pl/index.md | 146 +++++++++++++++++++++++++++++++++++++++++++++++++++ doc/zh/index.md | 146 +++++++++++++++++++++++++++++++++++++++++++++++++++ 8 files changed, 1168 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/blob/2da22a68/doc/de/index.md ---------------------------------------------------------------------- diff --git a/doc/de/index.md b/doc/de/index.md new file mode 100644 index 0000000..1c77db6 --- /dev/null +++ b/doc/de/index.md @@ -0,0 +1,146 @@ + + +# org.apache.cordova.device-motion + +Dieses Plugin ermöglicht den Zugriff auf das Gerät Beschleunigungsmesser. Der Beschleunigungsmesser ist ein Bewegungssensor, der die Änderung (*Delta*) erkennt Bewegung im Verhältnis zu der aktuellen Geräte-Orientierung, in drei Dimensionen entlang der *x-*, *y-*und *Z* -Achse. + +## Installation + + cordova plugin add org.apache.cordova.device-motion + + +## Unterstützte Plattformen + +* Amazon Fire OS +* Android +* BlackBerry 10 +* Firefox OS +* iOS +* Tizen +* Windows Phone 7 und 8 +* Windows 8 + +## Methoden + +* navigator.accelerometer.getCurrentAcceleration +* navigator.accelerometer.watchAcceleration +* navigator.accelerometer.clearWatch + +## Objekte + +* Beschleunigung + +## navigator.accelerometer.getCurrentAcceleration + +Erhalten Sie die aktuelle Beschleunigung entlang der *x-*, *y-*und *Z* -Achsen. + +Diese Beschleunigungswerte werden zurückgegeben die `accelerometerSuccess` Callback-Funktion. + + navigator.accelerometer.getCurrentAcceleration(accelerometerSuccess, accelerometerError); + + +### Beispiel + + function onSuccess(acceleration) { + alert('Acceleration X: ' + acceleration.x + '\n' + + 'Acceleration Y: ' + acceleration.y + '\n' + + 'Acceleration Z: ' + acceleration.z + '\n' + + 'Timestamp: ' + acceleration.timestamp + '\n'); + }; + + function onError() { + alert('onError!'); + }; + + navigator.accelerometer.getCurrentAcceleration(onSuccess, onError); + + +### iOS Macken + +* iOS erkennt nicht das Konzept die aktuelle Beschleunigung zu einem bestimmten Zeitpunkt zu bekommen. + +* Müssen Sie die Beschleunigung zu sehen und erfassen die Daten zu bestimmten Zeitintervallen. + +* So die `getCurrentAcceleration` -Funktion führt zu den letzten Wert berichtet von einer `watchAccelerometer` rufen. + +## navigator.accelerometer.watchAcceleration + +Ruft das Gerät die aktuelle `Acceleration` in regelmäßigen Abständen, Ausführung der `accelerometerSuccess` Callback-Funktion jedes Mal. Gibt das Intervall in Millisekunden über die `acceleratorOptions` des Objekts `frequency` Parameter. + +Das zurückgegebene ID Referenzen der Beschleunigungsmesser Uhr Intervall zu sehen und kann mit verwendet werden `navigator.accelerometer.clearWatch` , beobachten den Beschleunigungsmesser zu stoppen. + + var watchID = navigator.accelerometer.watchAcceleration(accelerometerSuccess, + accelerometerError, + [accelerometerOptions]); + + +* **accelerometerOptions**: Ein Objekt mit den folgenden optionalen Elementen: + * **Häufigkeit**: wie oft abgerufen werden die `Acceleration` in Millisekunden. *(Anzahl)* (Default: 10000) + +### Beispiel + + function onSuccess(acceleration) { + alert('Acceleration X: ' + acceleration.x + '\n' + + 'Acceleration Y: ' + acceleration.y + '\n' + + 'Acceleration Z: ' + acceleration.z + '\n' + + 'Timestamp: ' + acceleration.timestamp + '\n'); + }; + + function onError() { + alert('onError!'); + }; + + var options = { frequency: 3000 }; // Update every 3 seconds + + var watchID = navigator.accelerometer.watchAcceleration(onSuccess, onError, options); + + +### iOS Macken + +Die API ruft die Erfolg-Callback-Funktion im Intervall angefordert, aber schränkt den Bereich der Anforderungen an das Gerät zwischen 40ms und 1000ms. Beispielsweise wenn Sie ein Intervall von 3 Sekunden, (3000ms), beantragen die API fordert Daten vom Gerät jede Sekunde, aber nur den Erfolg-Rückruf führt alle 3 Sekunden. + +## navigator.accelerometer.clearWatch + +Beenden, beobachten die `Acceleration` verwiesen wird, durch die `watchID` Parameter. + + navigator.accelerometer.clearWatch(watchID); + + +* **WatchID**: die ID von zurückgegeben`navigator.accelerometer.watchAcceleration`. + +### Beispiel + + var watchID = navigator.accelerometer.watchAcceleration(onSuccess, onError, options); + + // ... later on ... + + navigator.accelerometer.clearWatch(watchID); + + +## Beschleunigung + +Zu einem bestimmten Zeitpunkt erfasste `Beschleunigungsmesser`-Daten. Beschleunigungswerte sind die Auswirkungen der Schwerkraft (9.81 m/s ^ 2), so dass wenn ein Gerät flach und nach oben, *X*, *y liegt*, und *Z* -Werte zurückgegeben werden sollte `` , `` , und`9.81`. + +### Eigenschaften + +* **X**: Betrag der Beschleunigung auf der x-Achse. (in m/s ^ 2) *(Anzahl)* +* **y**: Betrag der Beschleunigung auf der y-Achse. (in m/s ^ 2) *(Anzahl)* +* **Z**: Betrag der Beschleunigung auf die z-Achse. (in m/s ^ 2) *(Anzahl)* +* **Timestamp**: Zeitstempel der Erstellung in Millisekunden. *(DOMTimeStamp)* \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/blob/2da22a68/doc/es/index.md ---------------------------------------------------------------------- diff --git a/doc/es/index.md b/doc/es/index.md new file mode 100644 index 0000000..f245da3 --- /dev/null +++ b/doc/es/index.md @@ -0,0 +1,146 @@ + + +# org.apache.cordova.device-motion + +Este plugin proporciona acceso a acelerómetro del dispositivo. El acelerómetro es un sensor de movimiento que detecta el cambio (*delta*) en movimiento con respecto a la orientación actual del dispositivo, en tres dimensiones sobre el eje *x*, *y*y *z* . + +## Instalación + + cordova plugin add org.apache.cordova.device-motion + + +## Plataformas soportadas + +* Amazon fuego OS +* Android +* BlackBerry 10 +* Firefox OS +* iOS +* Tizen +* Windows Phone 7 y 8 +* Windows 8 + +## Métodos + +* navigator.accelerometer.getCurrentAcceleration +* navigator.accelerometer.watchAcceleration +* navigator.accelerometer.clearWatch + +## Objetos + +* Acceleration + +## navigator.accelerometer.getCurrentAcceleration + +Tienes la aceleración actual a lo largo de los ejes *x*, *y*y *z* . + +Estos valores de aceleración son devueltos a la `accelerometerSuccess` función de callback. + + navigator.accelerometer.getCurrentAcceleration(accelerometerSuccess, accelerometerError); + + +### Ejemplo + + function onSuccess(acceleration) { + alert('Acceleration X: ' + acceleration.x + '\n' + + 'Acceleration Y: ' + acceleration.y + '\n' + + 'Acceleration Z: ' + acceleration.z + '\n' + + 'Timestamp: ' + acceleration.timestamp + '\n'); + }; + + function onError() { + alert('onError!'); + }; + + navigator.accelerometer.getCurrentAcceleration(onSuccess, onError); + + +### iOS rarezas + +* iOS no reconoce el concepto de conseguir la aceleración actual en cualquier momento dado. + +* Debes ver la aceleración y capturar los datos en determinados intervalos de tiempo. + +* Así, el `getCurrentAcceleration` función rinde el último valor reportado de una `watchAccelerometer` llamada. + +## navigator.accelerometer.watchAcceleration + +Recupera el dispositivo actual de `Acceleration` a intervalos regulares, ejecutar el `accelerometerSuccess` función callback cada vez. Especificar el intervalo en milisegundos mediante la `acceleratorOptions` del objeto `frequency` parámetro. + +El vuelto ver referencias ID intervalo del acelerómetro reloj y puede ser utilizado con `navigator.accelerometer.clearWatch` para dejar de ver el acelerómetro. + + var watchID = navigator.accelerometer.watchAcceleration(accelerometerSuccess, + accelerometerError, + [accelerometerOptions]); + + +* **accelerometerOptions**: Un objeto con las llaves opcionales siguientes: + * **frecuencia**: frecuencia con la que recuperar la `Acceleration` en milisegundos. *(Número)* (Por defecto: 10000) + +### Ejemplo + + function onSuccess(acceleration) { + alert('Acceleration X: ' + acceleration.x + '\n' + + 'Acceleration Y: ' + acceleration.y + '\n' + + 'Acceleration Z: ' + acceleration.z + '\n' + + 'Timestamp: ' + acceleration.timestamp + '\n'); + }; + + function onError() { + alert('onError!'); + }; + + var options = { frequency: 3000 }; // Update every 3 seconds + + var watchID = navigator.accelerometer.watchAcceleration(onSuccess, onError, options); + + +### iOS rarezas + +La API llama a la función de devolución de llamada de éxito en el intervalo solicitado, pero restringe la gama de solicitudes que el dispositivo entre 40ms y 1000ms. Por ejemplo, si usted solicita un intervalo de 3 segundos, (3000ms), la API pide datos desde el dispositivo cada 1 segundo, pero sólo ejecuta el callback de éxito cada 3 segundos. + +## navigator.accelerometer.clearWatch + +Dejar de ver la `Acceleration` que se hace referencia por la `watchID` parámetro. + + navigator.accelerometer.clearWatch(watchID); + + +* **watchID**: el identificador devuelto por`navigator.accelerometer.watchAcceleration`. + +### Ejemplo + + var watchID = navigator.accelerometer.watchAcceleration(onSuccess, onError, options); + + // ... later on ... + + navigator.accelerometer.clearWatch(watchID); + + +## Aceleración + +Contiene `Accelerometer` datos capturados en un punto específico en el tiempo. Valores de aceleración incluyen el efecto de la gravedad (9,81 m/s ^ 2), de modo que cuando se encuentra un dispositivo plano y hacia arriba, *x*, *y*, y *z* valores devueltos deben ser `` , `` , y`9.81`. + +### Propiedades + +* **x**: cantidad de aceleración en el eje x. (en m/s ^ 2) *(Número)* +* **y**: cantidad de aceleración en el eje y. (en m/s ^ 2) *(Número)* +* **z**: cantidad de aceleración en el eje z. (en m/s ^ 2) *(Número)* +* **timestamp**: fecha y hora creación en milisegundos. *(DOMTimeStamp)* \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/blob/2da22a68/doc/fr/index.md ---------------------------------------------------------------------- diff --git a/doc/fr/index.md b/doc/fr/index.md new file mode 100644 index 0000000..16a7fe3 --- /dev/null +++ b/doc/fr/index.md @@ -0,0 +1,146 @@ + + +# org.apache.cordova.device-motion + +Ce plugin permet d'accéder à l'accéléromètre de l'appareil. L'accéléromètre est un capteur de mouvement qui détecte la modification (*delta*) en mouvement par rapport à l'orientation actuelle de l'appareil, en trois dimensions le long de l'axe *x*, *y*et *z* . + +## Installation + + cordova plugin add org.apache.cordova.device-motion + + +## Plates-formes prises en charge + +* Amazon Fire OS +* Android +* BlackBerry 10 +* Firefox OS +* iOS +* Paciarelli +* Windows Phone 7 et 8 +* Windows 8 + +## Méthodes + +* navigator.accelerometer.getCurrentAcceleration +* navigator.accelerometer.watchAcceleration +* navigator.accelerometer.clearWatch + +## Objets + +* Acceleration + +## navigator.accelerometer.getCurrentAcceleration + +Renvoie l'accélération en cours sur les axes *x*, *y*et *z* . + +Ces valeurs d'accélération sont retournées à la fonction callback `accelerometerSuccess`. + + navigator.accelerometer.getCurrentAcceleration(accelerometerSuccess, accelerometerError); + + +### Exemple + + function onSuccess(acceleration) { + alert('Acceleration X: ' + acceleration.x + '\n' + + 'Acceleration Y: ' + acceleration.y + '\n' + + 'Acceleration Z: ' + acceleration.z + '\n' + + 'Timestamp: ' + acceleration.timestamp + '\n'); + }; + + function onError() { + alert('onError!'); + }; + + navigator.accelerometer.getCurrentAcceleration(onSuccess, onError); + + +### iOS Quirks + +* iOS ne permet pas d'obtenir l'accélération en cours à un instant donné. + +* Vous devez observer l'accélération et capturer ses données à un intervalle de temps donné. + +* De ce fait, la fonction `getCurrentAcceleration` renvoie la dernière valeur retournée par un appel à `watchAccelerometer`. + +## navigator.accelerometer.watchAcceleration + +Récupère le dispositif actuel de `Acceleration` à intervalle régulier, l'exécution de la `accelerometerSuccess` fonction de rappel chaque fois. Spécifiez l'intervalle, en millisecondes, via le `acceleratorOptions` de l'objet `frequency` paramètre. + +Le retourné regarder ID références intervalle de surveillance de l'accéléromètre et peut être utilisé avec `navigator.accelerometer.clearWatch` d'arrêter de regarder l'accéléromètre. + + var watchID = navigator.accelerometer.watchAcceleration(accelerometerSuccess, + accelerometerError, + [accelerometerOptions]); + + +* **accelerometerOptions**: Un objet avec les clés facultatives suivantes : + * **frequency**: Fréquence de récupération de l'`Acceleration` en millisecondes. *(Number)* (Défaut : 10000) + +### Exemple + + function onSuccess(acceleration) { + alert('Acceleration X: ' + acceleration.x + '\n' + + 'Acceleration Y: ' + acceleration.y + '\n' + + 'Acceleration Z: ' + acceleration.z + '\n' + + 'Timestamp: ' + acceleration.timestamp + '\n'); + }; + + function onError() { + alert('onError!'); + }; + + var options = { frequency: 3000 }; // Update every 3 seconds + + var watchID = navigator.accelerometer.watchAcceleration(onSuccess, onError, options); + + +### iOS Quirks + +L'API appelle la fonction de callback de succès à l'intervalle demandé mais restreint l'éventail des demandes à l'appareil entre 40ms et 1000ms. Par exemple, si vous demandez un intervalle de 3 secondes, (3000ms), l'API demande des données de l'appareil toutes les 1 seconde, mais exécute seulement le callback de succès toutes les 3 secondes. + +## navigator.accelerometer.clearWatch + +Arrêter la surveillance du `Acceleration` référencée par le paramètre `watchID`. + + navigator.accelerometer.clearWatch(watchID); + + +* **watchID**: l'ID retourné par`navigator.accelerometer.watchAcceleration`. + +### Exemple + + var watchID = navigator.accelerometer.watchAcceleration(onSuccess, onError, options); + + // ... later on ... + + navigator.accelerometer.clearWatch(watchID); + + +## Accélération + +Contient les données `Accelerometer` capturées à un moment donné dans le temps. Valeurs d'accélération comprennent l'effet de la pesanteur (9,81 m/s ^ 2), de sorte que lorsqu'un périphérique se trouve plat et face vers le haut, *x*, *y*, et *z* valeurs retournées doivent être `` , `` , et`9.81`. + +### Propriétés + +* **x**: Valeur de l'accélération sur l'axe des x. (en m/s^2) *(Number)* +* **y**: Valeur de l'accélération sur l'axe des y. (en m/s^2) *(Number)* +* **y**: Valeur de l'accélération sur l'axe des z. (en m/s^2) *(Number)* +* **timestamp**: Date de création en millisecondes. *(DOMTimeStamp)* \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/blob/2da22a68/doc/it/index.md ---------------------------------------------------------------------- diff --git a/doc/it/index.md b/doc/it/index.md new file mode 100644 index 0000000..4dfbd02 --- /dev/null +++ b/doc/it/index.md @@ -0,0 +1,146 @@ + + +# org.apache.cordova.device-motion + +Questo plugin consente di accedere all'accelerometro del dispositivo. L'accelerometro è un sensore di movimento che rileva il cambiamento (*delta*) nel movimento relativo l'orientamento corrente del dispositivo, in tre dimensioni lungo l'asse *x*, *y*e *z* . + +## Installazione + + cordova plugin add org.apache.cordova.device-motion + + +## Piattaforme supportate + +* Amazon fuoco OS +* Android +* BlackBerry 10 +* Firefox OS +* iOS +* Tizen +* Windows Phone 7 e 8 +* Windows 8 + +## Metodi + +* navigator.accelerometer.getCurrentAcceleration +* navigator.accelerometer.watchAcceleration +* navigator.accelerometer.clearWatch + +## Oggetti + +* Accelerazione + +## navigator.accelerometer.getCurrentAcceleration + +Ottenere l'attuale accelerazione lungo gli assi *x*, *y*e *z* . + +I valori di accelerazione vengono restituiti per la `accelerometerSuccess` funzione di callback. + + navigator.accelerometer.getCurrentAcceleration(accelerometerSuccess, accelerometerError); + + +### Esempio + + function onSuccess(acceleration) { + alert('Acceleration X: ' + acceleration.x + '\n' + + 'Acceleration Y: ' + acceleration.y + '\n' + + 'Acceleration Z: ' + acceleration.z + '\n' + + 'Timestamp: ' + acceleration.timestamp + '\n'); + }; + + function onError() { + alert('onError!'); + }; + + navigator.accelerometer.getCurrentAcceleration(onSuccess, onError); + + +### iOS stranezze + +* iOS non riconosce il concetto di ottenere l'accelerazione della corrente in un dato punto. + +* Si deve guardare l'accelerazione e acquisire i dati di intervalli di tempo dato. + +* Così, il `getCurrentAcceleration` funzione restituisce l'ultimo valore segnalato da un `watchAccelerometer` chiamare. + +## navigator.accelerometer.watchAcceleration + +Recupera il dispositivo di corrente `Acceleration` a intervalli regolari, eseguendo la `accelerometerSuccess` funzione di callback ogni volta. Specificare l'intervallo in millisecondi via la `acceleratorOptions` dell'oggetto `frequency` parametro. + +L'oggetto restituito guardare ID riferimenti intervallo orologio di accelerometro e può essere utilizzato con `navigator.accelerometer.clearWatch` a smettere di guardare l'accelerometro. + + var watchID = navigator.accelerometer.watchAcceleration(accelerometerSuccess, + accelerometerError, + [accelerometerOptions]); + + +* **accelerometerOptions**: Un oggetto con le seguenti chiavi opzionali: + * **frequenza**: la frequenza di recuperare il `Acceleration` in millisecondi. *(Numero)* (Default: 10000) + +### Esempio + + function onSuccess(acceleration) { + alert('Acceleration X: ' + acceleration.x + '\n' + + 'Acceleration Y: ' + acceleration.y + '\n' + + 'Acceleration Z: ' + acceleration.z + '\n' + + 'Timestamp: ' + acceleration.timestamp + '\n'); + }; + + function onError() { + alert('onError!'); + }; + + var options = { frequency: 3000 }; // Update every 3 seconds + + var watchID = navigator.accelerometer.watchAcceleration(onSuccess, onError, options); + + +### iOS stranezze + +L'API chiama la funzione di callback di successo nell'intervallo richiesto, ma limita la gamma di richieste alla periferica tra 40ms e 1000ms. Ad esempio, se si richiede un intervallo di 3 secondi, (3000ms), l'API richiede i dati dal dispositivo ogni secondo, ma esegue solo il callback di successo ogni 3 secondi. + +## navigator.accelerometer.clearWatch + +Smettere di guardare il `Acceleration` fanno riferimento il `watchID` parametro. + + navigator.accelerometer.clearWatch(watchID); + + +* **watchID**: l'ID restituito da`navigator.accelerometer.watchAcceleration`. + +### Esempio + + var watchID = navigator.accelerometer.watchAcceleration(onSuccess, onError, options); + + // ... later on ... + + navigator.accelerometer.clearWatch(watchID); + + +## Accelerazione + +Contiene `Accelerometer` dati acquisiti in un punto specifico nel tempo. I valori di accelerazione includono l'effetto della gravità (9,81 m/s ^ 2), in modo che quando un dispositivo si trova piatta e rivolto in su, *x*, *y*, e *z* valori restituiti devono essere `` , `` , e`9.81`. + +### Proprietà + +* **x**: quantità di accelerazione sull'asse x. (in m/s ^ 2) *(Numero)* +* **y**: quantità di accelerazione sull'asse y. (in m/s ^ 2) *(Numero)* +* **z**: quantità di accelerazione sull'asse z. (in m/s ^ 2) *(Numero)* +* **timestamp**: creazione timestamp in millisecondi. *(DOMTimeStamp)* \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/blob/2da22a68/doc/ja/index.md ---------------------------------------------------------------------- diff --git a/doc/ja/index.md b/doc/ja/index.md new file mode 100644 index 0000000..63e6f08 --- /dev/null +++ b/doc/ja/index.md @@ -0,0 +1,146 @@ + + +# org.apache.cordova.device-motion + +このプラグインは、デバイスの加速度計へのアクセスを提供します。 加速度計の現在のデバイスの向き、 *x* *y*、および*z*軸に沿って 3 つの次元の相対運動の変更 (*デルタ*) を検出するモーション センサーです。 + +## インストール + + cordova plugin add org.apache.cordova.device-motion + + +## サポートされているプラットフォーム + +* アマゾン火 OS +* アンドロイド +* ブラックベリー 10 +* Firefox の OS +* iOS +* Tizen +* Windows Phone 7 と 8 +* Windows 8 + +## メソッド + +* navigator.accelerometer.getCurrentAcceleration +* navigator.accelerometer.watchAcceleration +* navigator.accelerometer.clearWatch + +## オブジェクト + +* 加速 + +## navigator.accelerometer.getCurrentAcceleration + +*X* *y*、および*z*軸に沿って現在の加速を取得します。 + +これらの加速度値に返されます、 `accelerometerSuccess` コールバック関数。 + + navigator.accelerometer.getCurrentAcceleration(accelerometerSuccess, accelerometerError); + + +### 例 + + function onSuccess(acceleration) { + alert('Acceleration X: ' + acceleration.x + '\n' + + 'Acceleration Y: ' + acceleration.y + '\n' + + 'Acceleration Z: ' + acceleration.z + '\n' + + 'Timestamp: ' + acceleration.timestamp + '\n'); + }; + + function onError() { + alert('onError!'); + }; + + navigator.accelerometer.getCurrentAcceleration(onSuccess, onError); + + +### iOS の癖 + +* iOS は、任意の時点で現在の加速度を得ることの概念を認識しません。 + +* 加速度を見るし、データをキャプチャする必要があります指定した時間間隔で。 + +* したがって、 `getCurrentAcceleration` 関数から報告された最後の値が生成されます、 `watchAccelerometer` を呼び出します。 + +## navigator.accelerometer.watchAcceleration + +取得、デバイスの現在 `Acceleration` 一定の間隔で実行する、 `accelerometerSuccess` コールバック関数するたびに。 経由でミリ秒単位で間隔を指定する、 `acceleratorOptions` オブジェクトの `frequency` パラメーター。 + +返される ID の参照、加速度計腕時計間隔を見るし、で使用することができます `navigator.accelerometer.clearWatch` 、加速度計を見て停止します。 + + var watchID = navigator.accelerometer.watchAcceleration(accelerometerSuccess, + accelerometerError, + [accelerometerOptions]); + + +* **accelerometerOptions**: 次のオプションのキーを持つオブジェクト: + * **周波数**: 取得する頻度、 `Acceleration` (ミリ秒単位)。*(数)*(デフォルト: 10000) + +### 例 + + function onSuccess(acceleration) { + alert('Acceleration X: ' + acceleration.x + '\n' + + 'Acceleration Y: ' + acceleration.y + '\n' + + 'Acceleration Z: ' + acceleration.z + '\n' + + 'Timestamp: ' + acceleration.timestamp + '\n'); + }; + + function onError() { + alert('onError!'); + }; + + var options = { frequency: 3000 }; // Update every 3 seconds + + var watchID = navigator.accelerometer.watchAcceleration(onSuccess, onError, options); + + +### iOS の癖 + +API は、要求された間隔で、成功コールバック関数を呼び出しますが 40 ms の間デバイスへの要求の範囲を制限し、1000 ミリ秒になります。 たとえば、(ms) 3 秒の間隔を要求した場合、API 1 秒ごとに、デバイスからデータを要求がのみ成功コールバック 3 秒ごとを実行します。 + +## navigator.accelerometer.clearWatch + +見て停止、 `Acceleration` によって参照される、 `watchID` パラメーター。 + + navigator.accelerometer.clearWatch(watchID); + + +* **watchID**: によって返される ID`navigator.accelerometer.watchAcceleration`. + +### 例 + + var watchID = navigator.accelerometer.watchAcceleration(onSuccess, onError, options); + + // ... later on ... + + navigator.accelerometer.clearWatch(watchID); + + +## 加速 + +含まれています `Accelerometer` で特定の時点でキャプチャしたデータ。 加速度値のとおり重力の効果 (9.81 m/s ^2) デバイスにあるフラットと*x* *y*、直面していると返される*z*値をする必要がありますように、 `` 、 `` と`9.81`. + +### プロパティ + +* **x**: x 軸の加速度の量です。(m/s ^2)*(数)* +* **y**: y 軸の加速度の量です。(m/s ^2)*(数)* +* **z**: z 軸の加速度の量です。(m/s ^2)*(数)* +* **タイムスタンプ**: 作成時のタイムスタンプ (ミリ秒単位)。*(,)* \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/blob/2da22a68/doc/ko/index.md ---------------------------------------------------------------------- diff --git a/doc/ko/index.md b/doc/ko/index.md new file mode 100644 index 0000000..aeeb005 --- /dev/null +++ b/doc/ko/index.md @@ -0,0 +1,146 @@ + + +# org.apache.cordova.device-motion + +이 플러그인 장치의 속도계에 대 한 액세스를 제공합니다. 가 속도계 3 차원 *x*, *y*및 *z* 축 따라 현재 장치 방향 기준으로 이동 (*델타*) 변경 내용을 감지 하는 모션 센서입니다. + +## 설치 + + cordova plugin add org.apache.cordova.device-motion + + +## 지원 되는 플랫폼 + +* 아마존 화재 운영 체제 +* 안 드 로이드 +* 블랙베리 10 +* Firefox 운영 체제 +* iOS +* Tizen +* Windows Phone 7과 8 +* 윈도우 8 + +## 메서드 + +* navigator.accelerometer.getCurrentAcceleration +* navigator.accelerometer.watchAcceleration +* navigator.accelerometer.clearWatch + +## 개체 + +* 가속 + +## navigator.accelerometer.getCurrentAcceleration + +*X*, *y*및 *z* 축 따라 현재 가속도 얻을. + +이 가속도 값에 반환 되는 `accelerometerSuccess` 콜백 함수. + + navigator.accelerometer.getCurrentAcceleration(accelerometerSuccess, accelerometerError); + + +### 예를 들어 + + function onSuccess(acceleration) { + alert('Acceleration X: ' + acceleration.x + '\n' + + 'Acceleration Y: ' + acceleration.y + '\n' + + 'Acceleration Z: ' + acceleration.z + '\n' + + 'Timestamp: ' + acceleration.timestamp + '\n'); + }; + + function onError() { + alert('onError!'); + }; + + navigator.accelerometer.getCurrentAcceleration(onSuccess, onError); + + +### iOS 단점 + +* iOS는 어떤 주어진된 시점에서 현재 가속도의 개념을 인식 하지 못합니다. + +* 가속을 감시 하며 데이터 캡처에 주어진 시간 간격. + +* 따라서,는 `getCurrentAcceleration` 에서 보고 된 마지막 값을 생성 하는 함수는 `watchAccelerometer` 전화. + +## navigator.accelerometer.watchAcceleration + +검색 장치의 현재 `Acceleration` 일반 간격에서 실행는 `accelerometerSuccess` 콜백 함수 때마다. 통해 밀리초 단위로 간격을 지정 된 `acceleratorOptions` 개체의 `frequency` 매개 변수. + +반환 된 ID 참조가 속도계의 시계 간격, 시청과 함께 사용할 수 있습니다 `navigator.accelerometer.clearWatch` 가 속도계를 보고 중지 합니다. + + var watchID = navigator.accelerometer.watchAcceleration(accelerometerSuccess, + accelerometerError, + [accelerometerOptions]); + + +* **accelerometerOptions**: 다음 선택적 키 개체: + * **주파수**: 검색 하는 `Acceleration` (밀리초)입니다. *(수)* (기본: 10000) + +### 예를 들어 + + function onSuccess(acceleration) { + alert('Acceleration X: ' + acceleration.x + '\n' + + 'Acceleration Y: ' + acceleration.y + '\n' + + 'Acceleration Z: ' + acceleration.z + '\n' + + 'Timestamp: ' + acceleration.timestamp + '\n'); + }; + + function onError() { + alert('onError!'); + }; + + var options = { frequency: 3000 }; // Update every 3 seconds + + var watchID = navigator.accelerometer.watchAcceleration(onSuccess, onError, options); + + +### iOS 단점 + +API 요청 간격 성공 콜백 함수를 호출 하지만 40ms 사이 장치에 요청의 범위를 제한 하 고 1000ms. 예를 들어 (3000ms) 3 초의 간격을 요청 하는 경우 API 마다 1 초 장치에서 데이터를 요청 하지만 성공 콜백을 3 초 마다 실행 됩니다. + +## navigator.accelerometer.clearWatch + +보고 중지는 `Acceleration` 에 의해 참조 되는 `watchID` 매개 변수. + + navigator.accelerometer.clearWatch(watchID); + + +* **watchID**: ID 반환`navigator.accelerometer.watchAcceleration`. + +### 예를 들어 + + var watchID = navigator.accelerometer.watchAcceleration(onSuccess, onError, options); + + // ... later on ... + + navigator.accelerometer.clearWatch(watchID); + + +## 가속 + +포함 `Accelerometer` 특정 시점에 캡처된 데이터가. 가속도 값 포함 중력의 효과 (9.81 m/s ^2) 때 장치 거짓말 평평 하 고 *x*, *y*, 최대 직면 하 고 *z* 값 반환 되어야 합니다 있도록, `` , `` , 그리고`9.81`. + +### 속성 + +* **x**: x 축에 가속의 금액. (m/s에서 ^2) *(수)* +* **y**: y 축에 가속의 금액. (m/s에서 ^2) *(수)* +* **z**: z 축의 가속도의 금액. (m/s에서 ^2) *(수)* +* **타임 스탬프**: 생성 타임 스탬프 (밀리초)입니다. *(DOMTimeStamp)* \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/blob/2da22a68/doc/pl/index.md ---------------------------------------------------------------------- diff --git a/doc/pl/index.md b/doc/pl/index.md new file mode 100644 index 0000000..c26d12e --- /dev/null +++ b/doc/pl/index.md @@ -0,0 +1,146 @@ + + +# org.apache.cordova.device-motion + +Ten plugin umożliwia dostęp do urządzenia akcelerometr. Akcelerometr jest czujnik ruchu, który wykrywa zmiany (*delta*) w ruchu względem bieżącej orientacji urządzenia, w trzech wymiarach na osi *x*, *y*i *z* . + +## Instalacji + + cordova plugin add org.apache.cordova.device-motion + + +## Obsługiwane platformy + +* Amazon ogień OS +* Android +* Jeżyna 10 +* Firefox OS +* iOS +* Tizen +* Windows Phone 7 i 8 +* Windows 8 + +## Metody + +* navigator.accelerometer.getCurrentAcceleration +* navigator.accelerometer.watchAcceleration +* navigator.accelerometer.clearWatch + +## Obiekty + +* Acceleration + +## navigator.accelerometer.getCurrentAcceleration + +Pobiera aktualne przyspieszenie wzdłuż osi *x*, *y* oraz *z*. + +Wartości przyspieszeń są zwracane funkcji `accelerometerSuccess`. + + navigator.accelerometer.getCurrentAcceleration(accelerometerSuccess, accelerometerError); + + +### Przykład + + function onSuccess(acceleration) { + alert('Acceleration X: ' + acceleration.x + '\n' + + 'Acceleration Y: ' + acceleration.y + '\n' + + 'Acceleration Z: ' + acceleration.z + '\n' + + 'Timestamp: ' + acceleration.timestamp + '\n'); + }; + + function onError() { + alert('onError!'); + }; + + navigator.accelerometer.getCurrentAcceleration(onSuccess, onError); + + +### iOS dziwactwa + +* iOS nie rozpoznaje koncepcji pobrania aktualnego przyspieszenia w danym punkcie. + +* Musisz obserwować przyspieszenie i przejmować dane w określonych odstępach czasu. + +* Podsumowując, funkcja `getCurrentAcceleration` zwraca ostatnią wartość zgłoszoną przez wywołanie `watchAccelerometer`. + +## navigator.accelerometer.watchAcceleration + +Pobiera urządzenie w bieżącym `Acceleration` w regularnych odstępach czasu, wykonywanie `accelerometerSuccess` funkcja wywołania zwrotnego za każdym razem. Określ interwał w milisekundach przez `acceleratorOptions` obiektu `frequency` parametr. + +Zwracane obejrzeć identyfikator odniesienia akcelerometr zegarek interwał i może być używany z `navigator.accelerometer.clearWatch` do zatrzymania, obejrzeniu akcelerometru. + + var watchID = navigator.accelerometer.watchAcceleration(accelerometerSuccess, + accelerometerError, + [accelerometerOptions]); + + +* **accelerometerOptions**: Obiekt z opcjonalnie następujące klucze: + * **frequency**: Jak często uzyskuje dane z `Acceleration` w milisekundach. *(Liczba)* (Domyślnie: 10000) + +### Przykład + + function onSuccess(acceleration) { + alert('Acceleration X: ' + acceleration.x + '\n' + + 'Acceleration Y: ' + acceleration.y + '\n' + + 'Acceleration Z: ' + acceleration.z + '\n' + + 'Timestamp: ' + acceleration.timestamp + '\n'); + }; + + function onError() { + alert('onError!'); + }; + + var options = { frequency: 3000 }; // Update every 3 seconds + + var watchID = navigator.accelerometer.watchAcceleration(onSuccess, onError, options); + + +### iOS dziwactwa + +API wywołuje funkcję zwrotną success w żądanym przedziale ale zakres żądania do urządzenia jest ograniczony przedziałem od 40ms do 1000ms. Dla przykładu, jeśli żądasz 3 sekundowy przedział (3000ms), API pobierze dane z urządzenia co 1 sekundę, ale wykona funkcję zwrotną success co każde 3 sekundy. + +## navigator.accelerometer.clearWatch + +Przestaje obserwować `Acceleration` odnoszące się do parametru `watchID`. + + navigator.accelerometer.clearWatch(watchID); + + +* **watchID**: Identyfikator zwrócony przez`navigator.accelerometer.watchAcceleration`. + +### Przykład + + var watchID = navigator.accelerometer.watchAcceleration(onSuccess, onError, options); + + // ... later on ... + + navigator.accelerometer.clearWatch(watchID); + + +## Przyspieszenie + +Zawiera przechwycone w danej chwili dane z `akcelerometru`. Wartości przyśpieszenia to efekt grawitacji (9.81 m/s ^ 2), tak, że kiedy urządzenie znajduje się płaska i górę, *x*, *y*, i *z* wartości zwracane powinny być `` , `` , i`9.81`. + +### Właściwości + +* **x**: Wielkość przyśpieszenia na osi x. (w m/s^2) *(Liczba)* +* **y**: Wielkość przyśpieszenia na osi y. (w m/s^2) *(Liczba)* +* **z**: Wielkość przyśpieszenia na osi z. (w m/s^2) *(Liczba)* +* **timestamp**: Znacznik czasu w milisekundach. *(DOMTimeStamp)* \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/blob/2da22a68/doc/zh/index.md ---------------------------------------------------------------------- diff --git a/doc/zh/index.md b/doc/zh/index.md new file mode 100644 index 0000000..244e987 --- /dev/null +++ b/doc/zh/index.md @@ -0,0 +1,146 @@ + + +# org.apache.cordova.device-motion + +這個外掛程式提供了對設備的加速度計的訪問。 加速度計是動作感應器檢測到的更改 (*三角洲*) 在相對於當前的設備方向,在三個維度沿*x*、 *y*和*z*軸運動。 + +## 安裝 + + cordova plugin add org.apache.cordova.device-motion + + +## 支援的平臺 + +* 亞馬遜火 OS +* Android 系統 +* 黑莓 10 +* 火狐瀏覽器作業系統 +* iOS +* Tizen +* Windows Phone 7 和 8 +* Windows 8 + +## 方法 + +* navigator.accelerometer.getCurrentAcceleration +* navigator.accelerometer.watchAcceleration +* navigator.accelerometer.clearWatch + +## 物件 + +* 加速度 + +## navigator.accelerometer.getCurrentAcceleration + +獲取當前加速沿*x*、 *y*和*z*軸。 + +這些加速度值將返回到 `accelerometerSuccess` 回呼函數。 + + navigator.accelerometer.getCurrentAcceleration(accelerometerSuccess, accelerometerError); + + +### 示例 + + function onSuccess(acceleration) { + alert('Acceleration X: ' + acceleration.x + '\n' + + 'Acceleration Y: ' + acceleration.y + '\n' + + 'Acceleration Z: ' + acceleration.z + '\n' + + 'Timestamp: ' + acceleration.timestamp + '\n'); + }; + + function onError() { + alert('onError!'); + }; + + navigator.accelerometer.getCurrentAcceleration(onSuccess, onError); + + +### iOS 的怪癖 + +* iOS 不會認識到在任何給定的點獲取當前加速度的概念。 + +* 你必須看加速和捕獲的資料在特定的時間間隔。 + +* 因此, `getCurrentAcceleration` 收益率從報告的最後一個值的函數 `watchAccelerometer` 調用。 + +## navigator.accelerometer.watchAcceleration + +檢索該設備的當前 `Acceleration` 間隔時間定期,執行 `accelerometerSuccess` 回呼函數每次。 指定的時間間隔,以毫秒為單位通過 `acceleratorOptions` 物件的 `frequency` 參數。 + +返回的觀看 ID 引用加速度計的手錶時間間隔,並可以用 `navigator.accelerometer.clearWatch` 來停止看加速度計。 + + var watchID = navigator.accelerometer.watchAcceleration(accelerometerSuccess, + accelerometerError, + [accelerometerOptions]); + + +* **accelerometerOptions**: 具有以下可選的鍵的物件: + * **頻率**: 經常如何檢索 `Acceleration` 以毫秒為單位。*(人數)*(預設值: 10000) + +### 示例 + + function onSuccess(acceleration) { + alert('Acceleration X: ' + acceleration.x + '\n' + + 'Acceleration Y: ' + acceleration.y + '\n' + + 'Acceleration Z: ' + acceleration.z + '\n' + + 'Timestamp: ' + acceleration.timestamp + '\n'); + }; + + function onError() { + alert('onError!'); + }; + + var options = { frequency: 3000 }; // Update every 3 seconds + + var watchID = navigator.accelerometer.watchAcceleration(onSuccess, onError, options); + + +### iOS 的怪癖 + +API 呼叫成功的回呼函數的時間間隔的要求,但到 40ms年之間設備限制所請求的範圍和 1000ms。 例如,如果請求的時間間隔為 3 秒,(3000ms) API 請求資料從設備每隔 1 秒,但只有執行成功回檔每隔 3 秒。 + +## navigator.accelerometer.clearWatch + +停止看 `Acceleration` 引用的 `watchID` 參數。 + + navigator.accelerometer.clearWatch(watchID); + + +* **watchID**: 由返回的 ID`navigator.accelerometer.watchAcceleration`. + +### 示例 + + var watchID = navigator.accelerometer.watchAcceleration(onSuccess, onError, options); + + // ... later on ... + + navigator.accelerometer.clearWatch(watchID); + + +## 加速度 + +包含 `Accelerometer` 在時間中的特定點捕獲的資料。 加速度值包括引力的影響 (9.81 m/s ^2),因此當設備謊言平面和麵朝上, *x*、 *y*,和*z*返回的值應該是 `` , `` ,和`9.81`. + +### 屬性 + +* **x**: 在 X 軸上的加速度量。(在 m/s ^2)*(人數)* +* **y**: 在 y 軸上的加速度量。(在 m/s ^2)*(人數)* +* **z**: 在 Z 軸上的加速度量。(在 m/s ^2)*(人數)* +* **時間戳記**: 創建時間戳記以毫秒為單位。*() DOMTimeStamp* \ No newline at end of file