You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ld...@apache.org on 2014/07/07 19:49:43 UTC

[06/10] 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/5a920830
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/tree/5a920830
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/diff/5a920830

Branch: refs/heads/master
Commit: 5a92083036be94adfd55697f7f71fa6adfc2cbbe
Parents: 655185c
Author: ldeluca <ld...@us.ibm.com>
Authored: Tue May 27 17:49:06 2014 -0400
Committer: ldeluca <ld...@us.ibm.com>
Committed: Tue May 27 17:49:06 2014 -0400

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


http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/blob/5a920830/doc/ja/index.md
----------------------------------------------------------------------
diff --git a/doc/ja/index.md b/doc/ja/index.md
new file mode 100644
index 0000000..99dcc32
--- /dev/null
+++ b/doc/ja/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-status
+
+This plugin provides an implementation of an old version of the [Battery Status Events API][1].
+
+ [1]: http://www.w3.org/TR/2011/WD-battery-status-20110915/
+
+It adds the following three `window` events:
+
+*   batterystatus
+*   batterycritical
+*   batterylow
+
+## インストール
+
+    cordova plugin add org.apache.cordova.battery-status
+    
+
+## batterystatus
+
+バッテリーの充電の割合 1% 以上によって変更されたとき、またはデバイス接続している場合に発生します。
+
+バッテリ状態ハンドラーは 2 つのプロパティを格納しているオブジェクトに渡されます。
+
+*   **レベル**: バッテリーの充電量 (0-100) の割合。*(数)*
+
+*   **起こしたり**: デバイスが接続されてインチ*(ブール値)*かどうかを示すブール値
+
+Applications typically should use `window.addEventListener` to attach an event listener once the `deviceready` event fires. e.g.:
+
+### サポートされているプラットフォーム
+
+*   アマゾン火 OS
+*   iOS
+*   アンドロイド
+*   ブラックベリー 10
+*   Windows Phone 7 と 8
+*   Tizen
+
+### Windows Phone 7 と 8 癖
+
+Windows Phone 7 は、バッテリーのレベルを決定するネイティブ Api を提供しませんので、 `level` プロパティは使用できません。`isPlugged`パラメーター*が*サポートされています。
+
+### 例
+
+    window.addEventListener("batterystatus", onBatteryStatus, false);
+    
+    function onBatteryStatus(info) {
+        // Handle the online event
+        console.log("Level: " + info.level + " isPlugged: " + info.isPlugged);
+    }
+    
+
+## batterycritical
+
+バッテリーの充電の割合がバッテリ切れのしきい値に達したときに発生します。値は、デバイス固有です。
+
+`batterycritical`ハンドラーは 2 つのプロパティを格納しているオブジェクトに渡されます。
+
+*   **レベル**: バッテリーの充電量 (0-100) の割合。*(数)*
+
+*   **起こしたり**: デバイスが接続されてインチ*(ブール値)*かどうかを示すブール値
+
+通常アプリケーションに使用する必要があります `window.addEventListener` 一度のイベント リスナーをアタッチし、 `deviceready` イベントが発生します。
+
+### サポートされているプラットフォーム
+
+*   アマゾン火 OS
+*   iOS
+*   アンドロイド
+*   ブラックベリー 10
+*   Tizen
+
+### 例
+
+    window.addEventListener("batterycritical", onBatteryCritical, false);
+    
+    function onBatteryCritical(info) {
+        // Handle the battery critical event
+        alert("Battery Level Critical " + info.level + "%\nRecharge Soon!");
+    }
+    
+
+## batterylow
+
+バッテリーの充電の割合がバッテリ低下しきい値、デバイス固有の値に達したときに発生します。
+
+`batterylow`ハンドラーは 2 つのプロパティを格納しているオブジェクトに渡されます。
+
+*   **レベル**: バッテリーの充電量 (0-100) の割合。*(数)*
+
+*   **起こしたり**: デバイスが接続されてインチ*(ブール値)*かどうかを示すブール値
+
+通常アプリケーションに使用する必要があります `window.addEventListener` 一度のイベント リスナーをアタッチし、 `deviceready` イベントが発生します。
+
+### サポートされているプラットフォーム
+
+*   アマゾン火 OS
+*   iOS
+*   アンドロイド
+*   ブラックベリー 10
+*   Tizen
+
+### 例
+
+    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