cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mwbro...@apache.org
Subject [11/36] Add edge for Spanish, French, and Chinese.
Date Fri, 30 Aug 2013 17:26:01 GMT
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/config.json~
----------------------------------------------------------------------
diff --git a/docs/zh/edge/config.json~ b/docs/zh/edge/config.json~
new file mode 100644
index 0000000..6a62799
--- /dev/null
+++ b/docs/zh/edge/config.json~
@@ -0,0 +1,200 @@
+{
+    "language": "English",
+    "merge": {
+        "accelerometer.md": [
+            "cordova/accelerometer/accelerometer.md",
+            "cordova/accelerometer/accelerometer.getCurrentAcceleration.md",
+            "cordova/accelerometer/accelerometer.watchAcceleration.md",
+            "cordova/accelerometer/accelerometer.clearWatch.md",
+            "cordova/accelerometer/acceleration/acceleration.md",
+            "cordova/accelerometer/parameters/accelerometerSuccess.md",
+            "cordova/accelerometer/parameters/accelerometerError.md",
+            "cordova/accelerometer/parameters/accelerometerOptions.md"
+        ],
+        "camera.md": [
+            "cordova/camera/camera.md",
+            "cordova/camera/camera.getPicture.md",
+            "cordova/camera/parameter/cameraSuccess.md",
+            "cordova/camera/parameter/cameraError.md",
+            "cordova/camera/parameter/cameraOptions.md",
+            "cordova/camera/parameter/CameraPopoverOptions.md",
+            "cordova/camera/parameter/CameraPopoverHandle.md"
+        ],
+        "capture.md": [
+            "cordova/media/capture/capture.md",
+            "cordova/media/capture/captureAudio.md",
+            "cordova/media/capture/captureAudioOptions.md",
+            "cordova/media/capture/captureImage.md",
+            "cordova/media/capture/captureImageOptions.md",
+            "cordova/media/capture/captureVideo.md",
+            "cordova/media/capture/captureVideoOptions.md",
+            "cordova/media/capture/CaptureError.md",
+            "cordova/media/capture/CaptureCB.md",
+            "cordova/media/capture/CaptureErrorCB.md",
+            "cordova/media/capture/ConfigurationData.md",
+            "cordova/media/capture/MediaFile.md",
+            "cordova/media/capture/MediaFile.getFormatData.md",
+            "cordova/media/capture/MediaFileData.md"
+        ],
+        "compass.md": [
+            "cordova/compass/compass.md",
+            "cordova/compass/compass.getCurrentHeading.md",
+            "cordova/compass/compass.watchHeading.md",
+            "cordova/compass/compass.clearWatch.md",
+            "cordova/compass/compass.watchHeadingFilter.md",
+            "cordova/compass/compass.clearWatchFilter.md",
+            "cordova/compass/parameters/compassSuccess.md",
+            "cordova/compass/parameters/compassError.md",
+            "cordova/compass/parameters/compassOptions.md",
+            "cordova/compass/parameters/compassHeading.md",
+            "cordova/compass/compassError/compassError.md"
+        ],
+        "contacts.md": [
+            "cordova/contacts/contacts.md",
+            "cordova/contacts/contacts.create.md",
+            "cordova/contacts/contacts.find.md",
+            "cordova/contacts/Contact/contact.md",
+            "cordova/contacts/ContactAddress/contactaddress.md",
+            "cordova/contacts/ContactField/contactfield.md",
+            "cordova/contacts/ContactFindOptions/contactfindoptions.md",
+            "cordova/contacts/ContactName/contactname.md",
+            "cordova/contacts/ContactOrganization/contactorganization.md",
+            "cordova/contacts/ContactError/contactError.md",
+            "cordova/contacts/parameters/contactSuccess.md",
+            "cordova/contacts/parameters/contactError.md",
+            "cordova/contacts/parameters/contactFields.md",
+            "cordova/contacts/parameters/contactFindOptions.md"
+        ],
+        "device.md": [
+            "cordova/device/device.md",
+            "cordova/device/device.name.md",
+            "cordova/device/device.cordova.md",
+            "cordova/device/device.platform.md",
+            "cordova/device/device.uuid.md",
+            "cordova/device/device.version.md"
+        ],
+        "events.md": [
+            "cordova/events/events.md",
+            "cordova/events/events.deviceready.md",
+            "cordova/events/events.pause.md",
+            "cordova/events/events.resume.md",
+            "cordova/events/events.online.md",
+            "cordova/events/events.offline.md",
+            "cordova/events/events.backbutton.md",
+            "cordova/events/events.batterycritical.md",
+            "cordova/events/events.batterylow.md",
+            "cordova/events/events.batterystatus.md",
+            "cordova/events/events.menubutton.md",
+            "cordova/events/events.searchbutton.md",
+            "cordova/events/events.startcallbutton.md",
+            "cordova/events/events.endcallbutton.md",
+            "cordova/events/events.volumedownbutton.md",
+            "cordova/events/events.volumeupbutton.md"
+        ],
+        "file.md": [
+            "cordova/file/file.md",
+            "cordova/file/fileobj/fileobj.md",
+            "cordova/file/filereader/filereader.md",
+            "cordova/file/filewriter/filewriter.md",
+            "cordova/file/filesystem/filesystem.md",
+            "cordova/file/fileentry/fileentry.md",
+            "cordova/file/directoryentry/directoryentry.md",
+            "cordova/file/directoryreader/directoryreader.md",
+            "cordova/file/filetransfer/filetransfer.md",
+            "cordova/file/fileuploadoptions/fileuploadoptions.md",
+            "cordova/file/fileuploadresult/fileuploadresult.md",
+            "cordova/file/flags/flags.md",
+            "cordova/file/localfilesystem/localfilesystem.md",
+            "cordova/file/metadata/metadata.md",
+            "cordova/file/fileerror/fileerror.md",
+            "cordova/file/filetransfererror/filetransfererror.md"
+        ],
+        "geolocation.md": [
+            "cordova/geolocation/geolocation.md",
+            "cordova/geolocation/geolocation.getCurrentPosition.md",
+            "cordova/geolocation/geolocation.watchPosition.md",
+            "cordova/geolocation/geolocation.clearWatch.md",
+            "cordova/geolocation/Coordinates/coordinates.md",
+            "cordova/geolocation/Position/position.md",
+            "cordova/geolocation/PositionError/positionError.md",
+            "cordova/geolocation/parameters/geolocationSuccess.md",
+            "cordova/geolocation/parameters/geolocationError.md",
+            "cordova/geolocation/parameters/geolocation.options.md"
+        ],
+        "globalization.md": [
+            "cordova/globalization/globalization.md",
+            "cordova/globalization/globalization.getPreferredLanguage.md",
+            "cordova/globalization/globalization.getLocaleName.md",
+            "cordova/globalization/globalization.dateToString.md",
+            "cordova/globalization/globalization.stringToDate.md",
+            "cordova/globalization/globalization.getDatePattern.md",
+            "cordova/globalization/globalization.getDateNames.md",
+            "cordova/globalization/globalization.isDayLightSavingsTime.md",
+            "cordova/globalization/globalization.getFirstDayOfWeek.md",
+            "cordova/globalization/globalization.numberToString.md",
+            "cordova/globalization/globalization.stringToNumber.md",
+            "cordova/globalization/globalization.getNumberPattern.md",
+            "cordova/globalization/globalization.getCurrencyPattern.md",
+            "cordova/globalization/GlobalizationError/globalizationerror.md"
+        ],
+        "media.md": [
+            "cordova/media/media.md",
+            "cordova/media/media.getCurrentPosition.md",
+            "cordova/media/media.getDuration.md",
+            "cordova/media/media.pause.md",
+            "cordova/media/media.play.md",
+            "cordova/media/media.release.md",
+            "cordova/media/media.seekTo.md",
+            "cordova/media/media.setVolume.md",
+            "cordova/media/media.startRecord.md",
+            "cordova/media/media.stop.md",
+            "cordova/media/media.stopRecord.md",
+            "cordova/media/MediaError/mediaError.md",
+            "cordova/media/Parameters/mediaError.md"
+        ],
+        "network.md": [
+            "cordova/network/network.md",
+            "cordova/network/network.isReachable.md",
+            "cordova/network/NetworkStatus/NetworkStatus.md",
+            "cordova/network/parameters/reachableCallback.md",
+            "cordova/network/parameters/reachableHostname.md",
+            "cordova/network/parameters/reachableOptions.md"
+        ],
+        "connection.md": [
+            "cordova/connection/connection.md",
+            "cordova/connection/connection.type.md"
+        ],
+        "notification.md": [
+            "cordova/notification/notification.md",
+            "cordova/notification/notification.alert.md",
+            "cordova/notification/notification.confirm.md",
+            "cordova/notification/notification.prompt.md",
+            "cordova/notification/notification.beep.md",
+            "cordova/notification/notification.vibrate.md"
+        ],
+        "splashscreen.md": [
+            "cordova/splashscreen/splashscreen.md",
+            "cordova/splashscreen/splashscreen.show.md",
+            "cordova/splashscreen/splashscreen.hide.md"
+        ],
+        "storage.md": [
+            "cordova/storage/storage.md",
+            "cordova/storage/storage.opendatabase.md",
+            "cordova/storage/parameters/name.md",
+            "cordova/storage/parameters/version.md",
+            "cordova/storage/parameters/display_name.md",
+            "cordova/storage/parameters/size.md",
+            "cordova/storage/database/database.md",
+            "cordova/storage/sqltransaction/sqltransaction.md",
+            "cordova/storage/sqlresultset/sqlresultset.md",
+            "cordova/storage/sqlresultsetrowlist/sqlresultsetrowlist.md",
+            "cordova/storage/sqlerror/sqlerror.md",
+            "cordova/storage/localstorage/localstorage.md"
+        ],
+        "inappbrowser.md": [
+            "cordova/inappbrowser/inappbrowser.md",
+            "cordova/inappbrowser/window.open.md"
+        ]
+        
+    }
+}

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/config_ref/index.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/config_ref/index.md b/docs/zh/edge/config_ref/index.md
new file mode 100644
index 0000000..d661b0c
--- /dev/null
+++ b/docs/zh/edge/config_ref/index.md
@@ -0,0 +1,54 @@
+---
+
+license: 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.
+---
+
+# 配置参考
+
+使用独立于平台的配置文件,可以控制应用程序行为的许多方面 `config.xml` ,其中的格式基于 W3C 的[打包 Web 应用程序 (小部件)][1]规范。
+
+ [1]: http://www.w3.org/TR/widgets/
+
+为项目创建与科尔多瓦 CLI (描述在命令行界面),可以在顶级找到此文件 `www` 目录。 使用 CLI 来生成项目将重新生成此内的各个子目录中的文件版本 `platforms` 。 对于非 CLI 的项目,每个特定于平台的文件作为源。
+
+虽然位置的 `config.xml` 文件可能会更改取决于平台,其内容通常不这样做。 一些特定于平台的功能也是在相同的配置文件中指定的。 下面列出了详细信息:
+
+*   iOS 配置
+*   Android 系统配置
+*   黑莓手机配置
+
+## config.xml 元素
+
+[Apache 科尔多瓦][2]项目力图通过 web 启发和基于 web 的抽象,很大程度是驱动和通过 web 社区的标准抽象远离本机平台细节。 请花几分钟时间熟悉[config.xml 规范][1],目的要了解应用程序元数据的 Apache 科尔多瓦项目的类型是抽象的并提供简单的切入点。
+
+ [2]: http://cordova.io
+
+示例:
+
+        < 构件 >< 首选项名称 ="MySetting"值 ="true"/ >< 功能名称 = 值"MyPlugin"="MyPluginClass"/ >< 访问来源 ="*"/ >< 内容 src="index.html"/ >< / 构件 >
+    
+
+请按照操作跨主要平台支持的 Apache 科尔多瓦的支持元素的列表。
+
+### `<feature>`
+
+这些元素映射到本机 Api 应用程序访问。 在运行时,Apache 科尔多瓦框架将映射 `<feature>` 元素为本机代码,使您的科尔多瓦应用程序访问设备不可用典型的基于 web 的应用程序的 Api。
+
+### `<access>`
+
+这些元素定义白名单的工作原理。请参阅域白名单指南的详细信息。
+
+### `<content>`
+
+此元素定义相对于项目的标准 web 资产根目录的应用程序的起始页。此元素是可选的默认值是`index.html`.
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/cordova/accelerometer/acceleration/acceleration.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/cordova/accelerometer/acceleration/acceleration.md b/docs/zh/edge/cordova/accelerometer/acceleration/acceleration.md
new file mode 100644
index 0000000..ed16845
--- /dev/null
+++ b/docs/zh/edge/cordova/accelerometer/acceleration/acceleration.md
@@ -0,0 +1,98 @@
+---
+
+license: 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.
+---
+
+# 加速度
+
+包含 `Accelerometer` 在时间中的特定点捕获的数据。
+
+## 属性
+
+*   **x**: 在 x 轴上的加速度量。(在 m/s ^2)*(人数)*
+*   **y**: 在 y 轴上的加速度量。(在 m/s ^2)*(人数)*
+*   **z**: 在 z 轴上的加速度量。(在 m/s ^2)*(人数)*
+*   **时间戳**: 创建时间戳以毫秒为单位。*() DOMTimeStamp*
+
+## 说明
+
+`Acceleration`对象是填充的返回的任何的 API 的 `Accelerometer` 方法。 加速度值包括引力的影响 (9.81 m/s ^2),因此当设备谎言平面和面朝上, *x*、 *y*,和*z*返回的值应该是 `` , `` ,和`9.81`.
+
+## 支持的平台
+
+*   Android 系统
+*   黑莓手机 WebWorks (OS 5.0 和更高)
+*   iOS
+*   Tizen
+*   Windows Phone 7 和 8
+*   Windows 8
+
+## 快速的示例
+
+    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);
+    
+
+## 完整的示例
+
+    <!DOCTYPE html>
+    <html>
+      <head>
+        <title>Acceleration Example</title>
+    
+        <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+        <script type="text/javascript" charset="utf-8">
+    
+        // Wait for device API libraries to load
+        //
+        document.addEventListener("deviceready", onDeviceReady, false);
+    
+        // device APIs are available
+        //
+        function onDeviceReady() {
+            navigator.accelerometer.getCurrentAcceleration(onSuccess, onError);
+        }
+    
+        // onSuccess: Get a snapshot of the current acceleration
+        //
+        function onSuccess(acceleration) {
+            alert('Acceleration X: ' + acceleration.x + '\n' +
+                  'Acceleration Y: ' + acceleration.y + '\n' +
+                  'Acceleration Z: ' + acceleration.z + '\n' +
+                  'Timestamp: '      + acceleration.timestamp + '\n');
+        }
+    
+        // onError: Failed to get the acceleration
+        //
+        function onError() {
+            alert('onError!');
+        }
+    
+        </script>
+      </head>
+      <body>
+        <h1>Example</h1>
+        <p>getCurrentAcceleration</p>
+      </body>
+    </html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/cordova/accelerometer/accelerometer.clearWatch.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/cordova/accelerometer/accelerometer.clearWatch.md b/docs/zh/edge/cordova/accelerometer/accelerometer.clearWatch.md
new file mode 100644
index 0000000..2e60943
--- /dev/null
+++ b/docs/zh/edge/cordova/accelerometer/accelerometer.clearWatch.md
@@ -0,0 +1,109 @@
+---
+
+license: 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.
+---
+
+# accelerometer.clearWatch
+
+停止看 `Acceleration` 引用的 `watchID` 参数。
+
+    navigator.accelerometer.clearWatch(watchID);
+    
+
+*   **watchID**: 由返回的 ID`accelerometer.watchAcceleration`.
+
+## 支持的平台
+
+*   Android 系统
+*   黑莓手机 WebWorks (OS 5.0 和更高)
+*   iOS
+*   Tizen
+*   Windows Phone 7 和 8
+*   Windows 8
+
+## 快速的示例
+
+    var watchID = navigator.accelerometer.watchAcceleration(onSuccess, onError, options);
+    
+    // ... later on ...
+    
+    navigator.accelerometer.clearWatch(watchID);
+    
+
+## 完整的示例
+
+    <!DOCTYPE html>
+    <html>
+      <head>
+        <title>Acceleration Example</title>
+    
+        <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+        <script type="text/javascript" charset="utf-8">
+    
+        // The watch id references the current `watchAcceleration`
+        var watchID = null;
+    
+        // Wait for device API libraries to load
+        //
+        document.addEventListener("deviceready", onDeviceReady, false);
+    
+        // device APIs are available
+        //
+        function onDeviceReady() {
+            startWatch();
+        }
+    
+        // Start watching the acceleration
+        //
+        function startWatch() {
+    
+            // Update acceleration every 3 seconds
+            var options = { frequency: 3000 };
+    
+            watchID = navigator.accelerometer.watchAcceleration(onSuccess, onError, options);
+        }
+    
+        // Stop watching the acceleration
+        //
+        function stopWatch() {
+            if (watchID) {
+                navigator.accelerometer.clearWatch(watchID);
+                watchID = null;
+            }
+        }
+    
+        // onSuccess: Get a snapshot of the current acceleration
+        //
+        function onSuccess(acceleration) {
+            var element = document.getElementById('accelerometer');
+    
+            element.innerHTML = 'Acceleration X: ' + acceleration.x + '<br />' +
+                                'Acceleration Y: ' + acceleration.y + '<br />' +
+                                'Acceleration Z: ' + acceleration.z + '<br />' +
+                                'Timestamp: '      + acceleration.timestamp + '<br />';
+        }
+    
+        // onError: Failed to get the acceleration
+        //
+        function onError() {
+            alert('onError!');
+        }
+    
+        </script>
+      </head>
+      <body>
+        <div id="accelerometer">Waiting for accelerometer...</div>
+            <button onclick="stopWatch();">Stop Watching</button>
+      </body>
+    </html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/cordova/accelerometer/accelerometer.getCurrentAcceleration.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/cordova/accelerometer/accelerometer.getCurrentAcceleration.md b/docs/zh/edge/cordova/accelerometer/accelerometer.getCurrentAcceleration.md
new file mode 100644
index 0000000..f451a12
--- /dev/null
+++ b/docs/zh/edge/cordova/accelerometer/accelerometer.getCurrentAcceleration.md
@@ -0,0 +1,105 @@
+---
+
+license: 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.
+---
+
+# accelerometer.getCurrentAcceleration
+
+获取当前加速沿*x*、 *y*和*z*轴。
+
+    navigator.accelerometer.getCurrentAcceleration(accelerometerSuccess, accelerometerError);
+    
+
+## 说明
+
+加速度计是动作感应器检测到的更改 (*三角洲*) 在相对于当前的设备方向,在三个维度沿*x*、 *y*和*z*轴运动。
+
+这些加速度值将返回到 `accelerometerSuccess` 回调函数。
+
+## 支持的平台
+
+*   Android 系统
+*   黑莓手机 WebWorks (OS 5.0 和更高)
+*   iOS
+*   Tizen
+*   Windows Phone 7 和 8
+*   Windows 8
+
+## 快速的示例
+
+    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);
+    
+
+## 完整的示例
+
+    <!DOCTYPE html>
+    <html>
+      <head>
+        <title>Acceleration Example</title>
+    
+        <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+        <script type="text/javascript" charset="utf-8">
+    
+        // Wait for device API libraries to load
+        //
+        document.addEventListener("deviceready", onDeviceReady, false);
+    
+        // device APIs are available
+        //
+        function onDeviceReady() {
+            navigator.accelerometer.getCurrentAcceleration(onSuccess, onError);
+        }
+    
+        // onSuccess: Get a snapshot of the current acceleration
+        //
+        function onSuccess(acceleration) {
+            alert('Acceleration X: ' + acceleration.x + '\n' +
+                  'Acceleration Y: ' + acceleration.y + '\n' +
+                  'Acceleration Z: ' + acceleration.z + '\n' +
+                  'Timestamp: '      + acceleration.timestamp + '\n');
+        }
+    
+        // onError: Failed to get the acceleration
+        //
+        function onError() {
+            alert('onError!');
+        }
+    
+        </script>
+      </head>
+      <body>
+        <h1>Example</h1>
+        <p>getCurrentAcceleration</p>
+      </body>
+    </html>
+    
+
+## iOS 的怪癖
+
+*   iOS 不会认识到在任何给定的点获取当前加速度的概念。
+
+*   你必须看加速和捕获的数据在特定的时间间隔。
+
+*   因此, `getCurrentAcceleration` 收益率从报告的最后一个值的函数 `watchAccelerometer` 调用。
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/cordova/accelerometer/accelerometer.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/cordova/accelerometer/accelerometer.md b/docs/zh/edge/cordova/accelerometer/accelerometer.md
new file mode 100644
index 0000000..9128e42
--- /dev/null
+++ b/docs/zh/edge/cordova/accelerometer/accelerometer.md
@@ -0,0 +1,71 @@
+---
+
+license: 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.
+---
+
+# 加速度计
+
+> 捕获设备中的*x*、 *y*和*z*方向运动。
+
+## 方法
+
+*   accelerometer.getCurrentAcceleration
+*   accelerometer.watchAcceleration
+*   accelerometer.clearWatch
+
+## 参数
+
+*   accelerometerSuccess
+*   accelerometerError
+*   accelerometerOptions
+
+## 对象 (只读)
+
+*   加速度
+
+## 访问功能
+
+从 3.0 版,科尔多瓦作为*插件*实现了设备级 Api。 使用 CLI 的 `plugin` 命令,描述在命令行界面,可以添加或删除一个项目,为此功能:
+
+        $ cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion.git
+        $ cordova plugin rm org.apache.cordova.core.device-motion
+    
+
+这些命令适用于所有有针对性的平台,但修改如下所述的特定于平台的配置设置:
+
+*   (在 android`app/res/xml/config.xml`)
+    
+        < 功能名称 ="加速度计">< 参数名称 ="android 包"value="org.apache.cordova.AccelListener"/ >< / 功能 >
+        
+
+*   黑莓手机 WebWorks
+    
+        (in www/plugins.xml) < 功能名称 ="加速度计">< 参数名称 ="黑莓手机-包"value="org.apache.cordova.accelerometer.Accelerometer"/ >< / 功能 > (在 www/config.xml) < 功能 id="blackberry.system"所需 ="true"版本 ="1.0.0.0"/ >< 功能 id="org.apache.cordova"所需 ="true"版本 ="1.0.0"/ >
+        
+
+*   (在 iOS`config.xml`)
+    
+        < 功能名称 ="加速度计">< 参数名称 ="ios 包"值 ="CDVAccelerometer"/ >< / 功能 >
+        
+
+*   (在 Windows Phone`Properties/WPAppManifest.xml`)
+    
+        < 功能 >< 功能名称 ="ID_CAP_SENSORS"/ >< / 功能 >
+        
+    
+    引用:[为 Windows Phone 应用程序清单][1]
+
+ [1]: http://msdn.microsoft.com/en-us/library/ff769509%28v=vs.92%29.aspx
+
+一些平台可能支持此功能,而无需任何特殊的配置。有关概述,请参见平台支持。
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/cordova/accelerometer/accelerometer.watchAcceleration.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/cordova/accelerometer/accelerometer.watchAcceleration.md b/docs/zh/edge/cordova/accelerometer/accelerometer.watchAcceleration.md
new file mode 100644
index 0000000..addd455
--- /dev/null
+++ b/docs/zh/edge/cordova/accelerometer/accelerometer.watchAcceleration.md
@@ -0,0 +1,129 @@
+---
+
+license: 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.
+---
+
+# accelerometer.watchAcceleration
+
+固定间隔,在获得沿*x*、 *y*和*z*轴加速度。
+
+    var watchID = navigator.accelerometer.watchAcceleration(accelerometerSuccess,
+                                                           accelerometerError,
+                                                           [accelerometerOptions]);
+    
+
+## 说明
+
+加速度计是动作感应器检测到的更改 (delta) 相对于当前位置的运动中。 加速度传感器可以检测到沿*x*、 *y*和*z*轴的三维运动。
+
+`accelerometer.watchAcceleration`方法检索设备的电流 `Acceleration` 间隔时间定期,执行 `accelerometerSuccess` 回调函数每次。 指定的时间间隔,以毫秒为单位通过 `acceleratorOptions` 对象的 `frequency` 参数。
+
+返回的观看 ID 引用加速度计的手表时间间隔,并可以用 `accelerometer.clearWatch` 来停止看加速度计。
+
+## 支持的平台
+
+*   Android 系统
+*   黑莓手机 WebWorks (OS 5.0 和更高)
+*   iOS
+*   Tizen
+*   Windows Phone 7 和 8
+*   Windows 8
+
+## 快速的示例
+
+    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);
+    
+
+## 完整的示例
+
+    <!DOCTYPE html>
+    <html>
+      <head>
+        <title>Acceleration Example</title>
+    
+        <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+        <script type="text/javascript" charset="utf-8">
+    
+        // The watch id references the current `watchAcceleration`
+        var watchID = null;
+    
+        // Wait for device API libraries to load
+        //
+        document.addEventListener("deviceready", onDeviceReady, false);
+    
+        // device APIs are available
+        //
+        function onDeviceReady() {
+            startWatch();
+        }
+    
+        // Start watching the acceleration
+        //
+        function startWatch() {
+    
+            // Update acceleration every 3 seconds
+            var options = { frequency: 3000 };
+    
+            watchID = navigator.accelerometer.watchAcceleration(onSuccess, onError, options);
+        }
+    
+        // Stop watching the acceleration
+        //
+        function stopWatch() {
+            if (watchID) {
+                navigator.accelerometer.clearWatch(watchID);
+                watchID = null;
+            }
+        }
+    
+        // onSuccess: Get a snapshot of the current acceleration
+        //
+        function onSuccess(acceleration) {
+            var element = document.getElementById('accelerometer');
+            element.innerHTML = 'Acceleration X: ' + acceleration.x         + '<br />' +
+                                'Acceleration Y: ' + acceleration.y         + '<br />' +
+                                'Acceleration Z: ' + acceleration.z         + '<br />' +
+                                'Timestamp: '      + acceleration.timestamp + '<br />';
+        }
+    
+        // onError: Failed to get the acceleration
+        //
+        function onError() {
+            alert('onError!');
+        }
+    
+        </script>
+      </head>
+      <body>
+        <div id="accelerometer">Waiting for accelerometer...</div>
+      </body>
+    </html>
+    
+
+## iOS 的怪癖
+
+API 调用成功的回调函数的时间间隔的要求,但到 40ms年之间设备限制所请求的范围和 1000ms。 例如,如果请求的时间间隔为 3 秒,(3000ms) API 请求数据从设备每隔 1 秒,但只有执行成功回调每隔 3 秒。
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/cordova/accelerometer/parameters/accelerometerError.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/cordova/accelerometer/parameters/accelerometerError.md b/docs/zh/edge/cordova/accelerometer/parameters/accelerometerError.md
new file mode 100644
index 0000000..ca1c105
--- /dev/null
+++ b/docs/zh/edge/cordova/accelerometer/parameters/accelerometerError.md
@@ -0,0 +1,23 @@
+---
+
+license: 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.
+---
+
+# accelerometerError
+
+加速度函数 onError 的回调函数。
+
+    function() {
+        // Handle the error
+    }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/cordova/accelerometer/parameters/accelerometerOptions.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/cordova/accelerometer/parameters/accelerometerOptions.md b/docs/zh/edge/cordova/accelerometer/parameters/accelerometerOptions.md
new file mode 100644
index 0000000..c7b5a15
--- /dev/null
+++ b/docs/zh/edge/cordova/accelerometer/parameters/accelerometerOptions.md
@@ -0,0 +1,23 @@
+---
+
+license: 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.
+---
+
+# accelerometerOptions
+
+若要自定义的加速度计值检索一个可选参数。
+
+## 选项
+
+*   **频率**: 经常如何检索 `Acceleration` 以毫秒为单位。*(人数)*(默认值: 10000)
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/cordova/accelerometer/parameters/accelerometerSuccess.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/cordova/accelerometer/parameters/accelerometerSuccess.md b/docs/zh/edge/cordova/accelerometer/parameters/accelerometerSuccess.md
new file mode 100644
index 0000000..360a939
--- /dev/null
+++ b/docs/zh/edge/cordova/accelerometer/parameters/accelerometerSuccess.md
@@ -0,0 +1,37 @@
+---
+
+license: 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.
+---
+
+# accelerometerSuccess
+
+提供的 onSuccess 回调函数 `Acceleration` 的信息。
+
+    function(acceleration) {
+        // Do something
+    }
+    
+
+## 参数
+
+*   **加速度**: 在时间中的某一时刻的加速度。(加速度)
+
+## 示例
+
+    function onSuccess(acceleration) {
+        alert('Acceleration X: ' + acceleration.x + '\n' +
+              'Acceleration Y: ' + acceleration.y + '\n' +
+              'Acceleration Z: ' + acceleration.z + '\n' +
+              'Timestamp: '      + acceleration.timestamp + '\n');
+    };
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/cordova/camera/camera.cleanup.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/cordova/camera/camera.cleanup.md b/docs/zh/edge/cordova/camera/camera.cleanup.md
new file mode 100644
index 0000000..2b99dbf
--- /dev/null
+++ b/docs/zh/edge/cordova/camera/camera.cleanup.md
@@ -0,0 +1,42 @@
+---
+
+license: 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.
+---
+
+# camera.cleanup
+
+删除中间由从临时存储相机所拍摄的照片。
+
+    navigator.camera.cleanup( cameraSuccess, cameraError );
+    
+
+## 说明
+
+删除中间打完电话后保留在临时存储的图像文件 `camera.getPicture` 。 适用时,才的价值 `Camera.sourceType` 等于 `Camera.PictureSourceType.CAMERA` 和 `Camera.destinationType` 等于`Camera.DestinationType.FILE_URI`.
+
+## 支持的平台
+
+*   iOS
+
+## 示例
+
+    navigator.camera.cleanup(onSuccess, onFail);
+    
+    function onSuccess() {
+        console.log("Camera cleanup success.")
+    }
+    
+    function onFail(message) {
+        alert('Failed because: ' + message);
+    }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/cordova/camera/camera.getPicture.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/cordova/camera/camera.getPicture.md b/docs/zh/edge/cordova/camera/camera.getPicture.md
new file mode 100644
index 0000000..01c35d5
--- /dev/null
+++ b/docs/zh/edge/cordova/camera/camera.getPicture.md
@@ -0,0 +1,214 @@
+---
+
+license: 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.
+---
+
+# camera.getPicture
+
+需要使用的相机,一张照片或从设备的图像库检索一张照片。 图像作为 base64 编码传递成功回调到 `String` ,或作为图像文件的 URI。 该方法本身返回 `CameraPopoverHandle` 可以用于重新定位文件选择弹出的对象。
+
+    navigator.camera.getPicture( cameraSuccess, cameraError, [ cameraOptions ] );
+    
+
+## 说明
+
+`camera.getPicture`函数将打开该设备的默认摄像头应用程序,使用户能够对齐图片。 默认情况下,会发生此行为时 `Camera.sourceType` 等于 `Camera.PictureSourceType.CAMERA` 。 一旦用户快照照片、 摄像头应用程序关闭,并恢复该应用程序。
+
+如果 `Camera.sourceType` 是 `Camera.PictureSourceType.PHOTOLIBRARY` 或 `Camera.PictureSourceType.SAVEDPHOTOALBUM` ,然后允许用户选择一个现有图像对话框的显示。 `camera.getPicture`函数返回 `CameraPopoverHandle` 对象,可用于设备方向更改时重新定位图像选择对话框,例如。
+
+返回值发送到 `cameraSuccess` 回调函数,根据指定的以下格式之一 `cameraOptions` :
+
+*   A `String` 包含的 base64 编码的照片图像。
+
+*   A `String` 表示在本地存储 (默认值) 上的图像文件位置。
+
+你可以做任何你想与编码的图像或 URI,例如:
+
+*   呈现在图像 `<img>` 标记,如下面的示例所示
+
+*   保存本地的数据 ( `LocalStorage` , [Lawnchair][1],等等.)
+
+*   将数据发布到远程服务器
+
+ [1]: http://brianleroux.github.com/lawnchair/
+
+**注:**在较新的设备上的照片分辨率是相当不错的。 从设备的库选择了照片不到较低的质量,压缩屏幕使即使 `quality` 指定参数。 为了避免常见的内存问题,设置 `Camera.destinationType` 到 `FILE_URI` 而不是`DATA_URL`.
+
+## 支持的平台
+
+*   Android 系统
+*   黑莓手机 WebWorks (OS 5.0 和更高)
+*   iOS
+*   Tizen
+*   Windows Phone 7 和 8
+*   Windows 8
+
+## Android 的怪癖
+
+Android 使用意向启动捕获图像,在设备上的相机活动和与低内存手机,科尔多瓦活动可能被杀。 在此方案中,可能不会显示图像还原科尔多瓦活动时。
+
+## iOS 的怪癖
+
+包括 JavaScript `alert()` 中任一回调的函数可能会导致问题。 换行内的警报 `setTimeout()` ,允许 iOS 图像选取器或弹出要完全关闭之前警报将显示:
+
+    setTimeout(function() {/ / 做你的事!},0) ;
+    
+
+## Windows Phone 7 的怪癖
+
+调用本机摄像头应用程序,同时通过 Zune 连接您的设备不工作,并触发错误回调。
+
+## Tizen 怪癖
+
+Tizen 仅支持 `destinationType` 的 `Camera.DestinationType.FILE_URI` 和 `sourceType` 的`Camera.PictureSourceType.PHOTOLIBRARY`.
+
+## 快速的示例
+
+拍一张照片,并检索它为 base64 编码的图像:
+
+    navigator.camera.getPicture(onSuccess, onFail, { quality: 50,
+        destinationType: Camera.DestinationType.DATA_URL
+    });
+    
+    function onSuccess(imageData) {
+        var image = document.getElementById('myImage');
+        image.src = "data:image/jpeg;base64," + imageData;
+    }
+    
+    function onFail(message) {
+        alert('Failed because: ' + message);
+    }
+    
+
+拍一张照片和检索图像的文件位置:
+
+    navigator.camera.getPicture(onSuccess, onFail, { quality: 50,
+        destinationType: Camera.DestinationType.FILE_URI });
+    
+    function onSuccess(imageURI) {
+        var image = document.getElementById('myImage');
+        image.src = imageURI;
+    }
+    
+    function onFail(message) {
+        alert('Failed because: ' + message);
+    }
+    
+
+## 完整的示例
+
+    <!DOCTYPE html>
+    <html>
+      <head>
+        <title>Capture Photo</title>
+    
+        <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+        <script type="text/javascript" charset="utf-8">
+    
+        var pictureSource;   // picture source
+        var destinationType; // sets the format of returned value
+    
+        // Wait for device API libraries to load
+        //
+        document.addEventListener("deviceready",onDeviceReady,false);
+    
+        // device APIs are available
+        //
+        function onDeviceReady() {
+            pictureSource=navigator.camera.PictureSourceType;
+            destinationType=navigator.camera.DestinationType;
+        }
+    
+        // Called when a photo is successfully retrieved
+        //
+        function onPhotoDataSuccess(imageData) {
+          // Uncomment to view the base64-encoded image data
+          // console.log(imageData);
+    
+          // Get image handle
+          //
+          var smallImage = document.getElementById('smallImage');
+    
+          // Unhide image elements
+          //
+          smallImage.style.display = 'block';
+    
+          // Show the captured photo
+          // The inline CSS rules are used to resize the image
+          //
+          smallImage.src = "data:image/jpeg;base64," + imageData;
+        }
+    
+        // Called when a photo is successfully retrieved
+        //
+        function onPhotoURISuccess(imageURI) {
+          // Uncomment to view the image file URI
+          // console.log(imageURI);
+    
+          // Get image handle
+          //
+          var largeImage = document.getElementById('largeImage');
+    
+          // Unhide image elements
+          //
+          largeImage.style.display = 'block';
+    
+          // Show the captured photo
+          // The inline CSS rules are used to resize the image
+          //
+          largeImage.src = imageURI;
+        }
+    
+        // A button will call this function
+        //
+        function capturePhoto() {
+          // Take picture using device camera and retrieve image as base64-encoded string
+          navigator.camera.getPicture(onPhotoDataSuccess, onFail, { quality: 50,
+            destinationType: destinationType.DATA_URL });
+        }
+    
+        // A button will call this function
+        //
+        function capturePhotoEdit() {
+          // Take picture using device camera, allow edit, and retrieve image as base64-encoded string
+          navigator.camera.getPicture(onPhotoDataSuccess, onFail, { quality: 20, allowEdit: true,
+            destinationType: destinationType.DATA_URL });
+        }
+    
+        // A button will call this function
+        //
+        function getPhoto(source) {
+          // Retrieve image file location from specified source
+          navigator.camera.getPicture(onPhotoURISuccess, onFail, { quality: 50,
+            destinationType: destinationType.FILE_URI,
+            sourceType: source });
+        }
+    
+        // Called if something bad happens.
+        //
+        function onFail(message) {
+          alert('Failed because: ' + message);
+        }
+    
+        </script>
+      </head>
+      <body>
+        <button onclick="capturePhoto();">Capture Photo</button> <br>
+        <button onclick="capturePhotoEdit();">Capture Editable Photo</button> <br>
+        <button onclick="getPhoto(pictureSource.PHOTOLIBRARY);">From Photo Library</button><br>
+        <button onclick="getPhoto(pictureSource.SAVEDPHOTOALBUM);">From Photo Album</button><br>
+        <img style="display:none;width:60px;height:60px;" id="smallImage" src="" />
+        <img style="display:none;" id="largeImage" src="" />
+      </body>
+    </html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/cordova/camera/camera.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/cordova/camera/camera.md b/docs/zh/edge/cordova/camera/camera.md
new file mode 100644
index 0000000..a6c96cb
--- /dev/null
+++ b/docs/zh/edge/cordova/camera/camera.md
@@ -0,0 +1,70 @@
+---
+
+license: 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.
+---
+
+# 相机
+
+> `camera`对象提供对该设备的默认摄像头应用程序的访问。
+
+**重要的隐私注:**图像从一个设备照相机的收集和使用提出了重要的隐私问题。 您的应用程序的隐私策略应该讨论应用程序如何使用相机和是否与任何其他方共享录制的影像。 此外,如果相机的应用程序的使用在用户界面中不是明显的应在您的应用程序访问相机 (如果设备操作系统不会这样做已经) 之前提供只是在时间的通知。 该通知应提供相同的信息上文指出的并获取该用户的权限 (例如,通过为**确定**并**不感谢**提出的选择)。 有关详细信息,请参阅隐私指南。
+
+## 方法
+
+*   camera.getPicture
+*   camera.cleanup
+
+## 访问功能
+
+从 3.0 版,科尔多瓦作为*插件*实现了设备级 Api。 使用 CLI 的 `plugin` 命令,描述在命令行界面,可以添加或删除一个项目,为此功能:
+
+        $ cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-camera.git
+        $ cordova plugin rm org.apache.cordova.core.camera
+    
+
+这些命令适用于所有有针对性的平台,但修改如下所述的特定于平台的配置设置:
+
+*   Android 系统
+    
+        (in app/res/xml/config.xml) < 功能名称 ="相机">< 参数名称 ="android 包"value="org.apache.cordova.CameraLauncher"/ >< / 功能 > (在 app/AndroidManifest) < 使用权限 android:name="android.permission.WRITE_EXTERNAL_STORAGE"/ >
+        
+
+*   黑莓手机 WebWorks
+    
+        (in www/plugins.xml) < 功能名称 ="相机">< 参数名称 ="黑莓手机-包"value="org.apache.cordova.camera.Camera"/ >< / 功能 > (在 www/config.xml) < 功能 id="blackberry.media.camera"/ >< rim: 权限 >< rim: 许可证 > use_camera < / rim: 许可证 >< / rim: 权限 >
+        
+
+*   (在 iOS`config.xml`)
+    
+        < 功能名称 ="相机">< 参数名称 ="ios 包"值 ="CDVCamera"/ >< / 功能 >
+        
+
+*   (在 Windows Phone`Properties/WPAppManifest.xml`)
+    
+        < 功能 >< 功能名称 ="ID_CAP_ISV_CAMERA"/ >< 功能名称 ="ID_HW_FRONTCAMERA"/ >< / 功能 >
+        
+    
+    引用:[为 Windows Phone 应用程序清单][1]
+
+*   (在 Tizen`config.xml`)
+    
+        < 功能名称 = 所需的"http://tizen.org/api/application"="true"/ >< 功能名称 ="http://tizen.org/api/application.launch"所需 ="true"/ >
+        
+    
+    引用: [Tizen Web 应用程序的应用程序清单][2]
+
+ [1]: http://msdn.microsoft.com/en-us/library/ff769509%28v=vs.92%29.aspx
+ [2]: https://developer.tizen.org/help/topic/org.tizen.help.gs/Creating%20a%20Project.html?path=0_1_1_3#8814682_CreatingaProject-EditingconfigxmlFeatures
+
+一些平台可能支持此功能,而无需任何特殊的配置。有关概述,请参见平台支持。
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/cordova/camera/parameter/CameraPopoverHandle.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/cordova/camera/parameter/CameraPopoverHandle.md b/docs/zh/edge/cordova/camera/parameter/CameraPopoverHandle.md
new file mode 100644
index 0000000..092c29a
--- /dev/null
+++ b/docs/zh/edge/cordova/camera/parameter/CameraPopoverHandle.md
@@ -0,0 +1,61 @@
+---
+
+license: 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.
+---
+
+# CameraPopoverHandle
+
+由创建的弹出对话框的句柄`camera.getPicture`.
+
+## 方法
+
+*   **setPosition**: 设置弹出的位置。
+
+## 支持的平台
+
+*   iOS
+
+## setPosition
+
+设置弹出的位置。
+
+**参数:**
+
+*   `cameraPopoverOptions`: `CameraPopoverOptions` ,指定新的位置
+
+## 快速的示例
+
+     var cameraPopoverOptions = new CameraPopoverOptions(300, 300, 100, 100, Camera.PopoverArrowDirection.ARROW_ANY);
+     cameraPopoverHandle.setPosition(cameraPopoverOptions);
+    
+
+## 完整的示例
+
+     function onSuccess(imageData) {
+          // Do stuff with the image!
+     }
+    
+     function onFail(message) {
+         alert('Failed to get the picture: ' + message);
+     }
+    
+     var cameraPopoverHandle = navigator.camera.getPicture(onSuccess, onFail,
+         { destinationType: Camera.DestinationType.FILE_URI,
+           sourceType: Camera.PictureSourceType.PHOTOLIBRARY });
+    
+     // Reposition the popover if the orientation changes.
+     window.onorientationchange = function() {
+         var cameraPopoverOptions = new CameraPopoverOptions(0, 0, 100, 100, 0);
+         cameraPopoverHandle.setPosition(cameraPopoverOptions);
+     }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/cordova/camera/parameter/CameraPopoverOptions.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/cordova/camera/parameter/CameraPopoverOptions.md b/docs/zh/edge/cordova/camera/parameter/CameraPopoverOptions.md
new file mode 100644
index 0000000..70a8004
--- /dev/null
+++ b/docs/zh/edge/cordova/camera/parameter/CameraPopoverOptions.md
@@ -0,0 +1,60 @@
+---
+
+license: 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.
+---
+
+# CameraPopoverOptions
+
+iOS 仅指定弹出的锚元素的位置和箭头方向,从 iPad 的库或专辑选择图像时的参数。
+
+    {x: 0,y: 32,宽度: 320,高度: 480,arrowDir: Camera.PopoverArrowDirection.ARROW_ANY} ;
+    
+
+## CameraPopoverOptions
+
+*   **x**: 像素的 x 坐标上的锚定弹出屏幕元素。*(人数)*
+
+*   **y**: 到其锚定弹出屏幕元素的 y 像素坐标。*(人数)*
+
+*   **宽度**: 宽度以像素为单位),到其锚定弹出屏幕元素。*(人数)*
+
+*   **高度**: 高度以像素为单位),到其锚定弹出屏幕元素。*(人数)*
+
+*   **arrowDir**: 上弹出的箭头应指向的方向。定义在 `Camera.PopoverArrowDirection` *(人数)* 
+    
+            Camera.PopoverArrowDirection = {ARROW_UP: 1,/ / 匹配 iOS UIPopoverArrowDirection 常量 ARROW_DOWN: 2,ARROW_LEFT: 4,ARROW_RIGHT: 8,ARROW_ANY: 15} ;
+        
+
+请注意弹出的大小可能会更改箭头的方向和屏幕的方向调整。 请确保帐户方向更改时指定的锚点的元素位置。
+
+## 快速的示例
+
+     var popover = new CameraPopoverOptions(300, 300, 100, 100, Camera.PopoverArrowDirection.ARROW_ANY);
+     var options = {
+         quality         : 50,
+         destinationType : Camera.DestinationType.DATA_URL,
+         sourceType      : Camera.PictureSource.SAVEDPHOTOALBUM,
+         popoverOptions  : popover
+     };
+    
+     navigator.camera.getPicture(onSuccess, onFail, options);
+    
+     function onSuccess(imageData) {
+         var image = document.getElementById('myImage');
+         image.src = "data:image/jpeg;base64," + imageData;
+     }
+    
+     function onFail(message) {
+         alert('Failed because: ' + message);
+     }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/cordova/camera/parameter/cameraError.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/cordova/camera/parameter/cameraError.md b/docs/zh/edge/cordova/camera/parameter/cameraError.md
new file mode 100644
index 0000000..26649a8
--- /dev/null
+++ b/docs/zh/edge/cordova/camera/parameter/cameraError.md
@@ -0,0 +1,28 @@
+---
+
+license: 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.
+---
+
+# cameraError
+
+onError 回调函数的函数提供了一条错误消息。
+
+    function(message) {
+        // Show a helpful message
+    }
+    
+
+## 参数
+
+*   **消息**: 消息提供的设备的本机代码。*(字符串)*
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/cordova/camera/parameter/cameraOptions.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/cordova/camera/parameter/cameraOptions.md b/docs/zh/edge/cordova/camera/parameter/cameraOptions.md
new file mode 100644
index 0000000..da308e2
--- /dev/null
+++ b/docs/zh/edge/cordova/camera/parameter/cameraOptions.md
@@ -0,0 +1,109 @@
+---
+
+license: 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.
+---
+
+# cameraOptions
+
+要自定义相机设置的可选参数。
+
+    {质量: 75,destinationType: Camera.DestinationType.DATA_URL,sourceType: Camera.PictureSourceType.CAMERA,allowEdit: 为 true,encodingType: Camera.EncodingType.JPEG,targetWidth: 100,targetHeight: 100,popoverOptions: CameraPopoverOptions,saveToPhotoAlbum: 虚假} ;
+    
+
+## 选项
+
+*   **质量**: 保存的图像,表示为一系列的 0-100,在 100 哪里通常全分辨率而不会丢失文件的压缩质量。 *(人数)*(请注意相机的分辨率有关的信息是不可用)。
+
+*   **destinationType**: Choose the format of the return value. Defined in `navigator.camera.DestinationType` *(Number)*
+    
+        Camera.DestinationType = {DATA_URL: 0,/ / 返回图像作为 base64 编码字符串 FILE_URI: 1,/ / 返回图像文件的 URI NATIVE_URI: 2 / / 返回图像本机 URI (例如,资产库: / / 在 iOS 或内容上: / / 在 Android 上)} ;
+        
+
+*   **sourceType**: Set the source of the picture. Defined in `navigator.camera.PictureSourceType` *(Number)*
+    
+        Camera.PictureSourceType = {PHOTOLIBRARY: 0,相机: 1,SAVEDPHOTOALBUM: 2} ;
+        
+
+*   **allowEdit**: 允许简单编辑的选择面前的形象。*(布尔)*
+
+*   **encodingType**: Choose the returned image file's encoding. Defined in `navigator.camera.EncodingType` *(Number)*
+    
+        Camera.EncodingType = {JPEG: 0,/ / 返回 JPEG 编码的 PNG 图像: 1 / / 返回 PNG 编码的图像} ;
+        
+
+*   **targetWidth**: 以像素为单位的尺度图像的宽度。必须与**targetHeight**一起使用。纵横比保持不变。*(人数)*
+
+*   **targetHeight**: 以像素为单位的尺度图像的高度。必须与**targetWidth**一起使用。纵横比保持不变。*(人数)*
+
+*   **媒体类型**: 设置要从选择媒体的类型。 时才起作用 `PictureSourceType` 是 `PHOTOLIBRARY` 或 `SAVEDPHOTOALBUM` 。 定义在 `nagivator.camera.MediaType` *(人数)* 
+    
+        Camera.MediaType = {图片: 0,/ / 允许只仍然图片的选择。 默认情况。 将返回指定通过 DestinationType 视频格式: 1,/ / 允许选择的视频,将始终返回 FILE_URI ALLMEDIA: 2 / / 允许从所有媒体类型的选择
+        
+    
+    };
+
+*   **correctOrientation**: 旋转图像,期间捕获设备的方向的正确。*(布尔)*
+
+*   **saveToPhotoAlbum**: 将图像保存到相册在设备上捕获后。*(布尔)*
+
+*   **popoverOptions**: 仅限 iOS 在 iPad 中指定弹出位置的选项。在中定义`CameraPopoverOptions`.
+
+*   **cameraDirection**: Choose the camera to use (front- or back-facing). Defined in `navigator.camera.Direction` *(Number)*
+    
+        Camera.Direction = {回: 0,/ / 使用前面后面摄像头: 1 / / 使用前置摄像头} ;
+        
+
+## Android 的怪癖
+
+*   忽略 `allowEdit` 参数。
+
+*   `Camera.PictureSourceType.PHOTOLIBRARY`和 `Camera.PictureSourceType.SAVEDPHOTOALBUM` 都显示相同的相册。
+
+## 黑莓手机的怪癖
+
+*   忽略 `quality` 参数。
+
+*   忽略 `sourceType` 参数。
+
+*   忽略 `allowEdit` 参数。
+
+*   应用程序必须具有关键注射权限后,用户会对齐照片关闭摄像头本机应用程序。
+
+*   使用大图像的大小可能会导致无法编码图像以后模型设备 (例如,火炬 9800) 上的该功能的高分辨率摄像机。
+
+*   `Camera.MediaType`不受支持。
+
+*   忽略 `correctOrientation` 参数。
+
+*   忽略 `cameraDirection` 参数。
+
+## iOS 的怪癖
+
+*   设置 `quality` 低于 50,避免在某些设备上的内存不足错误。
+
+*   当使用 `destinationType.FILE_URI` ,照片保存在应用程序的临时目录中。 你可能会删除此目录使用的内容 `navigator.fileMgr` Api 如果存储空间是关注的问题。
+
+## Tizen 怪癖
+
+*   不支持的选项
+
+*   始终返回一个文件的 URI
+
+## Windows Phone 7 和 8 怪癖
+
+*   忽略 `allowEdit` 参数。
+
+*   忽略 `correctOrientation` 参数。
+
+*   忽略 `cameraDirection` 参数。
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/cordova/camera/parameter/cameraSuccess.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/cordova/camera/parameter/cameraSuccess.md b/docs/zh/edge/cordova/camera/parameter/cameraSuccess.md
new file mode 100644
index 0000000..868442c
--- /dev/null
+++ b/docs/zh/edge/cordova/camera/parameter/cameraSuccess.md
@@ -0,0 +1,37 @@
+---
+
+license: 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.
+---
+
+# cameraSuccess
+
+onSuccess 提供的图像数据的回调函数。
+
+    function(imageData) {
+        // Do something with the image
+    }
+    
+
+## 参数
+
+*   **把图像数据**: Base64 编码的图像数据,*或*图像文件的 URI,取决于 `cameraOptions` 生效。*(字符串)*
+
+## 示例
+
+    // Show image
+    //
+    function cameraCallback(imageData) {
+        var image = document.getElementById('myImage');
+        image.src = "data:image/jpeg;base64," + imageData;
+    }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/cordova/compass/compass.clearWatch.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/cordova/compass/compass.clearWatch.md b/docs/zh/edge/cordova/compass/compass.clearWatch.md
new file mode 100644
index 0000000..48d9d31
--- /dev/null
+++ b/docs/zh/edge/cordova/compass/compass.clearWatch.md
@@ -0,0 +1,106 @@
+---
+
+license: 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.
+---
+
+# compass.clearWatch
+
+再看看 ID 参数所引用的指南针。
+
+    navigator.compass.clearWatch(watchID);
+    
+
+*   **watchID**: 由返回的 ID`compass.watchHeading`.
+
+## 支持的平台
+
+*   Android 系统
+*   黑莓 10
+*   iOS
+*   Tizen
+*   Windows Phone 7 和 8 (如果在硬件中可用)
+*   Windows 8
+
+## 快速的示例
+
+    var watchID = navigator.compass.watchHeading(onSuccess, onError, options);
+    
+    // ... later on ...
+    
+    navigator.compass.clearWatch(watchID);
+    
+
+## 完整的示例
+
+    <!DOCTYPE html>
+    <html>
+      <head>
+        <title>Compass Example</title>
+    
+        <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+        <script type="text/javascript" charset="utf-8">
+    
+        // The watch id references the current `watchHeading`
+        var watchID = null;
+    
+        // Wait for device API libraries to load
+        //
+        document.addEventListener("deviceready", onDeviceReady, false);
+    
+        // device APIs are available
+        //
+        function onDeviceReady() {
+            startWatch();
+        }
+    
+        // Start watching the compass
+        //
+        function startWatch() {
+    
+            // Update compass every 3 seconds
+            var options = { frequency: 3000 };
+    
+            watchID = navigator.compass.watchHeading(onSuccess, onError, options);
+        }
+    
+        // Stop watching the compass
+        //
+        function stopWatch() {
+            if (watchID) {
+                navigator.compass.clearWatch(watchID);
+                watchID = null;
+            }
+        }
+    
+        // onSuccess: Get the current heading
+        //
+        function onSuccess(heading) {
+            var element = document.getElementById('heading');
+            element.innerHTML = 'Heading: ' + heading.magneticHeading;
+        }
+    
+        // onError: Failed to get the heading
+        //
+        function onError(compassError) {
+            alert('Compass error: ' + compassError.code);
+        }
+    
+        </script>
+      </head>
+      <body>
+        <div id="heading">Waiting for heading...</div>
+        <button onclick="startWatch();">Start Watching</button>
+        <button onclick="stopWatch();">Stop Watching</button>
+      </body>
+    </html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/cordova/compass/compass.clearWatchFilter.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/cordova/compass/compass.clearWatchFilter.md b/docs/zh/edge/cordova/compass/compass.clearWatchFilter.md
new file mode 100644
index 0000000..a2fc081
--- /dev/null
+++ b/docs/zh/edge/cordova/compass/compass.clearWatchFilter.md
@@ -0,0 +1,19 @@
+---
+
+license: 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.
+---
+
+# compass.clearWatchFilter
+
+不再支持 1.6。请参阅`compass.clearWatch`.
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/cordova/compass/compass.getCurrentHeading.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/cordova/compass/compass.getCurrentHeading.md b/docs/zh/edge/cordova/compass/compass.getCurrentHeading.md
new file mode 100644
index 0000000..35b4017
--- /dev/null
+++ b/docs/zh/edge/cordova/compass/compass.getCurrentHeading.md
@@ -0,0 +1,90 @@
+---
+
+license: 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.
+---
+
+# compass.getCurrentHeading
+
+获取当前的罗经航向。
+
+    navigator.compass.getCurrentHeading(compassSuccess, compassError, compassOptions);
+    
+
+## 说明
+
+罗盘是传感器,可检测的方向或设备通常指从设备的顶部的标题。它的措施中从 0 度到 359.99,其中 0 是北部的标题。
+
+通过返回的罗经航向信息 `CompassHeading` 对象使用 `compassSuccess` 回调函数。
+
+## 支持的平台
+
+*   Android 系统
+*   黑莓 10
+*   iOS
+*   Tizen
+*   Windows Phone 7 和 8 (如果在硬件中可用)
+*   Windows 8
+
+## 快速的示例
+
+    function onSuccess(heading) {
+        alert('Heading: ' + heading.magneticHeading);
+    };
+    
+    function onError(error) {
+        alert('CompassError: ' + error.code);
+    };
+    
+    navigator.compass.getCurrentHeading(onSuccess, onError);
+    
+
+## 完整的示例
+
+    <!DOCTYPE html>
+    <html>
+      <head>
+        <title>Compass Example</title>
+    
+        <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+        <script type="text/javascript" charset="utf-8">
+    
+        // Wait for device API libraries to load
+        //
+        document.addEventListener("deviceready", onDeviceReady, false);
+    
+        // device APIs are available
+        //
+        function onDeviceReady() {
+            navigator.compass.getCurrentHeading(onSuccess, onError);
+        }
+    
+        // onSuccess: Get the current heading
+        //
+        function onSuccess(heading) {
+            alert('Heading: ' + heading.magneticHeading);
+        }
+    
+        // onError: Failed to get the heading
+        //
+        function onError(compassError) {
+            alert('Compass Error: ' + compassError.code);
+        }
+    
+        </script>
+      </head>
+      <body>
+        <h1>Example</h1>
+        <p>getCurrentHeading</p>
+      </body>
+    </html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/cordova/compass/compass.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/cordova/compass/compass.md b/docs/zh/edge/cordova/compass/compass.md
new file mode 100644
index 0000000..275c64e
--- /dev/null
+++ b/docs/zh/edge/cordova/compass/compass.md
@@ -0,0 +1,65 @@
+---
+
+license: 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.
+---
+
+# 指南针
+
+> 获取该设备的指向的方向。
+
+## 方法
+
+*   compass.getCurrentHeading
+*   compass.watchHeading
+*   compass.clearWatch
+*   compass.watchHeadingFilter (已过时)
+*   compass.clearWatchFilter (已过时)
+
+## 参数
+
+*   compassSuccess
+*   compassError
+*   compassOptions
+*   compassHeading
+
+## 访问功能
+
+从 3.0 版,科尔多瓦作为*插件*实现了设备级 Api。 使用 CLI 的 `plugin` 命令,描述在命令行界面,可以添加或删除一个项目,为此功能:
+
+        $ cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation.git
+        $ cordova plugin rm org.apache.cordova.core.device-orientation
+    
+
+这些命令适用于所有有针对性的平台,但修改如下所述的特定于平台的配置设置:
+
+*   (在 android`app/res/xml/config.xml`)
+    
+        < 功能名称 ="罗盘">< 参数名称 ="android 包"value="org.apache.cordova.CompassListener"/ >< / 功能 >
+        
+
+*   (在 iOS`config.xml`)
+    
+        < 功能名称 ="罗盘">< 参数名称 ="ios 包"值 ="CDVLocation"/ >< / 功能 >
+        
+
+*   (在 Windows Phone`Properties/WPAppManifest.xml`)
+    
+        < 功能 >< 功能名称 ="ID_CAP_SENSORS"/ >< / 功能 >
+        
+    
+    引用:[为 Windows Phone 应用程序清单][1]
+
+ [1]: http://msdn.microsoft.com/en-us/library/ff769509%28v=vs.92%29.aspx
+
+一些平台可能支持此功能,而无需任何特殊的配置。有关概述,请参见平台支持。
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/cordova/compass/compass.watchHeading.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/cordova/compass/compass.watchHeading.md b/docs/zh/edge/cordova/compass/compass.watchHeading.md
new file mode 100644
index 0000000..f1858e9
--- /dev/null
+++ b/docs/zh/edge/cordova/compass/compass.watchHeading.md
@@ -0,0 +1,128 @@
+---
+
+license: 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.
+---
+
+# compass.watchHeading
+
+固定间隔,在得到中度的罗盘标题。
+
+    var watchID = navigator.compass.watchHeading(compassSuccess, compassError, [compassOptions]);
+    
+
+## 说明
+
+罗盘是传感器,可检测的方向或设备是针对性的标题。它的措施从 0 到 359.99 度中的标题。
+
+`compass.watchHeading`获取设备的当前标题在固定的时间间隔。 检索标题时,每次 `headingSuccess` 执行回调函数。 指定的时间间隔,以毫秒为单位通过 `frequency` 参数的 `compassOptions` 对象。
+
+返回的表 ID 引用指南针手表的时间间隔。可以使用 ID 与手表 `compass.clearWatch` 停止了观看指南针。
+
+## 支持的平台
+
+*   Android 系统
+*   黑莓 10
+*   iOS
+*   Tizen
+*   Windows Phone 7 和 8 (如果在硬件中可用)
+*   Windows 8
+
+## 快速的示例
+
+    function onSuccess(heading) {
+        var element = document.getElementById('heading');
+        element.innerHTML = 'Heading: ' + heading.magneticHeading;
+    };
+    
+    function onError(compassError) {
+        alert('Compass error: ' + compassError.code);
+    };
+    
+    var options = {
+        frequency: 3000
+    }; // Update every 3 seconds
+    
+    var watchID = navigator.compass.watchHeading(onSuccess, onError, options);
+    
+
+## 完整的示例
+
+    <!DOCTYPE html>
+    <html>
+      <head>
+        <title>Compass Example</title>
+    
+        <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+        <script type="text/javascript" charset="utf-8">
+    
+        // The watch id references the current `watchHeading`
+        var watchID = null;
+    
+        // Wait for device API libraries to load
+        //
+        document.addEventListener("deviceready", onDeviceReady, false);
+    
+        // device APIs are available
+        //
+        function onDeviceReady() {
+            startWatch();
+        }
+    
+        // Start watching the compass
+        //
+        function startWatch() {
+    
+            // Update compass every 3 seconds
+            var options = { frequency: 3000 };
+    
+            watchID = navigator.compass.watchHeading(onSuccess, onError, options);
+        }
+    
+        // Stop watching the compass
+        //
+        function stopWatch() {
+            if (watchID) {
+                navigator.compass.clearWatch(watchID);
+                watchID = null;
+            }
+        }
+    
+        // onSuccess: Get the current heading
+        //
+        function onSuccess(heading) {
+            var element = document.getElementById('heading');
+            element.innerHTML = 'Heading: ' + heading.magneticHeading;
+        }
+    
+        // onError: Failed to get the heading
+        //
+        function onError(compassError) {
+            alert('Compass error: ' + compassError.code);
+        }
+    
+        </script>
+      </head>
+      <body>
+        <div id="heading">Waiting for heading...</div>
+        <button onclick="startWatch();">Start Watching</button>
+        <button onclick="stopWatch();">Stop Watching</button>
+      </body>
+    </html>
+    
+
+## iOS 的怪癖
+
+IOS 中 `compass.watchHeading` 以指定的度数改变时也可以获得设备的当前标题。 每次的标题更改时由指定数目的度或更多, `headingSuccess` 执行回调函数。 指定度的变化通过 `filter` 参数的 `compassOptions` 对象。 清除手表像往常一样通过传递到返回的表 ID `compass.clearWatch` 。 此功能将替换以前分开,只有 iOS `watchHeadingFilter` 和 `clearWatchFilter` 功能,1.6 版本中被移除。
+
+只有一个 `watchHeading` 可以在 iOS 中一次效果。 如果 `watchHeading` 使用筛选器中,调用 `getCurrentHeading` 或 `watchHeading` 使用现有的筛选器值来指定标题的更改。 使用筛选器看标题的变化是与时间间隔比效率更高。
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/cordova/compass/compass.watchHeadingFilter.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/cordova/compass/compass.watchHeadingFilter.md b/docs/zh/edge/cordova/compass/compass.watchHeadingFilter.md
new file mode 100644
index 0000000..ce0a7bd
--- /dev/null
+++ b/docs/zh/edge/cordova/compass/compass.watchHeadingFilter.md
@@ -0,0 +1,19 @@
+---
+
+license: 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.
+---
+
+# compass.watchHeadingFilter
+
+不再支持 1.6,见 `compass.watchHeading` 为等效的功能。
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/cordova/compass/compassError/compassError.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/cordova/compass/compassError/compassError.md b/docs/zh/edge/cordova/compass/compassError/compassError.md
new file mode 100644
index 0000000..73b68dd
--- /dev/null
+++ b/docs/zh/edge/cordova/compass/compassError/compassError.md
@@ -0,0 +1,32 @@
+---
+
+license: 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.
+---
+
+# CompassError
+
+A `CompassError` 对象返回到 `compassError` 时出现错误的回调函数。
+
+## 属性
+
+*   **代码**: 下面列出的预定义的错误代码之一。
+
+## 常量
+
+*   `CompassError.COMPASS_INTERNAL_ERR`
+*   `CompassError.COMPASS_NOT_SUPPORTED`
+
+## 说明
+
+当错误发生时, `CompassError` 对象作为一个参数传递 `compassError` 回调函数。
\ No newline at end of file


Mime
View raw message