You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by mw...@apache.org on 2012/07/25 00:50:37 UTC
[21/29] docs commit: Translate and update files related to camera
Translate and update files related to camera
Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/commit/96333751
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/tree/96333751
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/diff/96333751
Branch: refs/heads/master
Commit: 96333751de4e92e9955282c1aa9412e1ab8bdbb5
Parents: 2545e49
Author: Keiko Oda <ke...@gmail.com>
Authored: Tue Jul 17 02:31:32 2012 -0700
Committer: Keiko Oda <ke...@gmail.com>
Committed: Tue Jul 24 12:20:39 2012 -0700
----------------------------------------------------------------------
.../1.9.0/cordova/camera/CameraPopoverOptions.md | 71 ---------------
docs/jp/1.9.0/cordova/camera/camera.cleanup.md | 50 ++++++++++
docs/jp/1.9.0/cordova/camera/camera.getPicture.md | 2 +-
docs/jp/1.9.0/cordova/camera/camera.md | 1 +
.../camera/parameter/CameraPopoverOptions.md | 71 +++++++++++++++
.../cordova/camera/parameter/cameraOptions.md | 6 +-
6 files changed, 125 insertions(+), 76 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/96333751/docs/jp/1.9.0/cordova/camera/CameraPopoverOptions.md
----------------------------------------------------------------------
diff --git a/docs/jp/1.9.0/cordova/camera/CameraPopoverOptions.md b/docs/jp/1.9.0/cordova/camera/CameraPopoverOptions.md
deleted file mode 100644
index 6a329d5..0000000
--- a/docs/jp/1.9.0/cordova/camera/CameraPopoverOptions.md
+++ /dev/null
@@ -1,71 +0,0 @@
----
-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
-====================
-
-画像をライブラリーもしくはアルバムから選択する際の、 iPad でのポップオーバーの位置や矢印の向きを指定するためのパラメーターです。 iOS のみのオプションです。
-
- { x : 0,
- y : 32,
- width : 320,
- height : 480,
- arrowDir : Camera.PopoverArrowDirection.ARROW_ANY
- };
-
-CameraPopoverOptions
---------------------
-
-- __x:__ ポップオーバーの x 座標をピクセルで表します。 (`Number`)
-
-- __y:__ ポップオーバーの y 座標をピクセルで表します。 (`Number`)
-
-- __width:__ ポップオーバーの幅をピクセルで表します。 (`Number`)
-
-- __height:__ ポップオーバーの高さをピクセルで表します。 (`Number`)
-
-- __arrowDir:__ ポップオーバーの矢印の向きを表します。 Camera.PopoverArrowDirection で定義されます。 (`Number`)
-
- 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);
- }
-
http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/96333751/docs/jp/1.9.0/cordova/camera/camera.cleanup.md
----------------------------------------------------------------------
diff --git a/docs/jp/1.9.0/cordova/camera/camera.cleanup.md b/docs/jp/1.9.0/cordova/camera/camera.cleanup.md
new file mode 100644
index 0000000..73874f0
--- /dev/null
+++ b/docs/jp/1.9.0/cordova/camera/camera.cleanup.md
@@ -0,0 +1,50 @@
+---
+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
+=================
+
+カメラで撮影され、ローカルストレージ temporary ディレクトリに保存された画像ファイルをクリーンアップします。
+
+ navigator.camera.cleanup( cameraSuccess, cameraError );
+
+概要
+-----------
+
+`camera.getPicture` が `Camera.sourceType = Camera.PictureSourceType.CAMERA` と `Camera.destinationType = Camera.DestinationType.FILE_URI` と一緒に使用されたとき、ローカルストレージ temporary ディレクトリに保存された画像ファイルをクリーンアップします。
+
+
+サポートされているプラットフォーム
+-------------------
+
+- iOS
+
+
+使用例
+-------------
+
+ navigator.camera.cleanup(onSuccess, onFail);
+
+ function onSuccess() {
+ console.log("クリーンアップに成功しました。")
+ }
+
+ function onFail(message) {
+ alert('クリーンアップに失敗: ' + message);
+ }
http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/96333751/docs/jp/1.9.0/cordova/camera/camera.getPicture.md
----------------------------------------------------------------------
diff --git a/docs/jp/1.9.0/cordova/camera/camera.getPicture.md b/docs/jp/1.9.0/cordova/camera/camera.getPicture.md
index 1e5cd21..ab72fe4 100644
--- a/docs/jp/1.9.0/cordova/camera/camera.getPicture.md
+++ b/docs/jp/1.9.0/cordova/camera/camera.getPicture.md
@@ -106,7 +106,7 @@ Zune とデバイスが接続している間は、ネイティブカメラアプ
<head>
<title>写真を撮ってみよう</title>
- <script type="text/javascript" charset="utf-8" src="cordova-1.8.1.js"></script>
+ <script type="text/javascript" charset="utf-8" src="cordova-1.9.0.js"></script>
<script type="text/javascript" charset="utf-8">
var pictureSource; // 写真ソース
http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/96333751/docs/jp/1.9.0/cordova/camera/camera.md
----------------------------------------------------------------------
diff --git a/docs/jp/1.9.0/cordova/camera/camera.md b/docs/jp/1.9.0/cordova/camera/camera.md
index a35c707..47892e7 100644
--- a/docs/jp/1.9.0/cordova/camera/camera.md
+++ b/docs/jp/1.9.0/cordova/camera/camera.md
@@ -26,6 +26,7 @@ Camera
-------
- camera.getPicture
+- camera.cleanup
パーミッション
-----------
http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/96333751/docs/jp/1.9.0/cordova/camera/parameter/CameraPopoverOptions.md
----------------------------------------------------------------------
diff --git a/docs/jp/1.9.0/cordova/camera/parameter/CameraPopoverOptions.md b/docs/jp/1.9.0/cordova/camera/parameter/CameraPopoverOptions.md
new file mode 100644
index 0000000..6a329d5
--- /dev/null
+++ b/docs/jp/1.9.0/cordova/camera/parameter/CameraPopoverOptions.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.
+---
+
+CameraPopoverOptions
+====================
+
+画像をライブラリーもしくはアルバムから選択する際の、 iPad でのポップオーバーの位置や矢印の向きを指定するためのパラメーターです。 iOS のみのオプションです。
+
+ { x : 0,
+ y : 32,
+ width : 320,
+ height : 480,
+ arrowDir : Camera.PopoverArrowDirection.ARROW_ANY
+ };
+
+CameraPopoverOptions
+--------------------
+
+- __x:__ ポップオーバーの x 座標をピクセルで表します。 (`Number`)
+
+- __y:__ ポップオーバーの y 座標をピクセルで表します。 (`Number`)
+
+- __width:__ ポップオーバーの幅をピクセルで表します。 (`Number`)
+
+- __height:__ ポップオーバーの高さをピクセルで表します。 (`Number`)
+
+- __arrowDir:__ ポップオーバーの矢印の向きを表します。 Camera.PopoverArrowDirection で定義されます。 (`Number`)
+
+ 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);
+ }
+
http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/96333751/docs/jp/1.9.0/cordova/camera/parameter/cameraOptions.md
----------------------------------------------------------------------
diff --git a/docs/jp/1.9.0/cordova/camera/parameter/cameraOptions.md b/docs/jp/1.9.0/cordova/camera/parameter/cameraOptions.md
index bd59a0e..28e8c54 100644
--- a/docs/jp/1.9.0/cordova/camera/parameter/cameraOptions.md
+++ b/docs/jp/1.9.0/cordova/camera/parameter/cameraOptions.md
@@ -29,7 +29,8 @@ cameraOptions
encodingType: Camera.EncodingType.JPEG,
targetWidth: 100,
targetHeight: 100,
- popoverOptions: CameraPopoverOptions };
+ popoverOptions: CameraPopoverOptions,
+ saveToPhotoAlbum: false };
オプション
-------
@@ -80,9 +81,6 @@ Android に関する注意点
- `allowEdit` は無視されます。
- Camera.PictureSourceType.PHOTOLIBRARY と Camera.PictureSourceType.SAVEDPHOTOALBUM は同じフォトアルバムを表示します。
-- Camera.EncodingType はサポートされていません。
-- `correctOrientation` パラメーターは無視されます。
-- `saveToPhotoAlbum` パラメーターは無視されます。
BlackBerry に関する注意点
-----------------