Repository: cordova-plugin-camera Updated Branches: refs/heads/master 8ff4d3f16 -> 4c901d56b
Lisa testing pulling in plugins for plugin: cordova-plugin-camera Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/commit/9de98fcc Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/tree/9de98fcc Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/diff/9de98fcc Branch: refs/heads/master Commit: 9de98fcc0d0c7c25aa1950a21b96c14c6da66c7a Parents: 68453f2 Author: ldeluca <[email protected]> Authored: Tue May 27 17:49:11 2014 -0400 Committer: Steven Gill <[email protected]> Committed: Tue Jun 3 14:29:41 2014 -0700 ---------------------------------------------------------------------- doc/ja/index.md | 379 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 379 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/blob/9de98fcc/doc/ja/index.md ---------------------------------------------------------------------- diff --git a/doc/ja/index.md b/doc/ja/index.md new file mode 100644 index 0000000..8a2a66e --- /dev/null +++ b/doc/ja/index.md @@ -0,0 +1,379 @@ +<!--- + 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.camera + +This plugin provides an API for taking pictures and for choosing images from the system's image library. + + cordova plugin add org.apache.cordova.camera + + +## navigator.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`. + +### ãµãã¼ãããã¦ãããã©ãããã©ã¼ã + +* ã¢ãã¾ã³ç« OS +* ã¢ã³ããã¤ã +* ãã©ãã¯ããªã¼ 10 +* Firefox OS +* iOS +* Tizen +* Windows Phone 7 㨠8 +* Windows 8 + +### Amazon Fire OS Quirks + +Amazon Fire OS uses intents to launch the camera activity on the device to capture images, and on phones with low memory, the Cordova activity may be killed. ãã®ã·ããªãªã§ã¯ãã³ã«ããã®æ´»åã復å ãããã¨ããç»åã表示ããã¾ããã + +### Android ã®ç + +*Android 4.4 only*: Android 4.4 introduced a new [Storage Access Framework][2] that makes it easier for users to browse and open documents across all of their preferred document storage providers. Cordova has not yet been fully integrated with this new Storage Access Framework. Because of this, the `getPicture()` method will not correctly return pictures when the user selects from the "Recent", "Drive", "Images", or "External Storage" folders when the `destinationType` is `FILE_URI`. However, the user will be able to correctly select any pictures if they go through the "Gallery" app first. Potential workarounds for this issue are documented on [this StackOverflow question][3]. Please see [CB-5398][4] to track this issue. + + [2]: https://developer.android.com/guide/topics/providers/document-provider.html + [3]: http://stackoverflow.com/questions/19834842/android-gallery-on-kitkat-returns-different-uri-for-intent-action-get-content/20177611 + [4]: https://issues.apache.org/jira/browse/CB-5398 + +ã¢ã³ããã¤ããã¤ã¡ã¼ã¸ããã£ããã£ããããã¤ã¹ä¸ã§ã«ã¡ã©ã®ã¢ã¯ãã£ããã£ãéå§ããæå³ã使ç¨ããã¡ã¢ãªã®å°ãªãæºå¸¯é»è©±ãã³ã«ããæ´»åãæ®ºããããããããªãã In this scenario, the image may not appear when the Cordova activity is restored. + +### Firefox OS Quirks + +Camera plugin is currently implemented using [Web Activities][5]. + + [5]: https://hacks.mozilla.org/2013/01/introducing-web-activities/ + +### 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); + } + + +## CameraOptions + +ã«ã¡ã©ã®è¨å®ãã«ã¹ã¿ãã¤ãºãããªãã·ã§ã³ã®ãã©ã¡ã¼ã¿ã¼ã + + {åè³ªï¼ 75ãdestinationType: Camera.DestinationType.DATA_URLãsourceType: Camera.PictureSourceType.CAMERAãallowEdit: true ã®å ´åãencodingType: Camera.EncodingType.JPEGãtargetWidth: 100ãtargetHeight: 100ãpopoverOptionsï¼ CameraPopoverOptionsãsaveToPhotoAlbum: false}; + + +### ãªãã·ã§ã³ + +* **å質**ï¼ 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 ã¾ãã¯ã³ã³ãã³ãã«ï¼//ã¢ã³ããã¤ã)}; + + +* **sourceType**: Set the source of the picture. Defined in `navigator.camera.PictureSourceType` *(Number)* + + Camera.PictureSourceType = {ãã©ã ã©ã¤ãã©ãª: 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**ã使ç¨ããå¿ è¦ãããã¾ãã縦横æ¯ã¯å¤ããã¾ããã*(æ°)* + +* **mediaType**ï¼ ãã鏿ããã¡ãã£ã¢ã®ç¨®é¡ãè¨å®ãã¾ãã å ´åã«ã®ã¿åãã¾ã `PictureSourceType` 㯠`PHOTOLIBRARY` ã¾ã㯠`SAVEDPHOTOALBUM` ã å®ç¾©ããã¦ãã `nagivator.camera.MediaType` *ï¼çªå·ï¼* + + Camera.MediaType = {ç»åï¼ 0//鿢ç»ã®ã¿ã鏿ã§ãã¾ãã æ¢å®å¤ã§ãã DestinationType ãããªãä»ãã¦æå®ãããå½¢å¼ãè¿ããã¾ã: 1ã/ã®ã¿ãå¸¸ã«æ»ã FILE_URI ALLMEDIA ã®ãããªã®é¸æã許å¯ãã/: 2//ãã¹ã¦ã®ã¡ãã£ã¢ ã¿ã¤ãããã®é¸æãè¨±å¯ + + + }; + +* **correctOrientation**: ãã£ããã£ä¸ã«ãããã¤ã¹ã®åããä¿®æ£ããç»åãå転ããã¾ãã*(ãã¼ã«å¤)* + +* **saveToPhotoAlbum**: ãã£ããã£å¾ãããã¤ã¹ä¸ã®ãã©ã ã¢ã«ãã ã«ç»åãä¿åãã¾ãã*(ãã¼ã«å¤)* + +* **popoverOptions**: iPad ã®ããã ãªã¼ãã¼ã®å ´æãæå®ãã iOS ã®ã¿ã®ãªãã·ã§ã³ã§ããå®ç¾©ããã¦ãã¾ãã`CameraPopoverOptions`. + +* **cameraDirection**: Choose the camera to use (front- or back-facing). Defined in `navigator.camera.Direction` *(Number)* + + Camera.Direction = {æ»ã: 0ã//å¾ãåãã«ã¡ã©åé¨ã使ç¨: 1/ããã³ãã«é¢ããã«ã¡ã©ã使ç¨ãã¦/}; + + +### Amazon Fire OSQuirks + +* ä»»æ `cameraDirection` èé¢åçã§çµæã®å¤ãã¾ãã + +* ç¡è¦ã `allowEdit` ãã©ã¡ã¼ã¿ã¼ã + +* `Camera.PictureSourceType.PHOTOLIBRARY``Camera.PictureSourceType.SAVEDPHOTOALBUM`両æ¹ã®ã¢ã«ãã ã表示ããã¾ãåãåçã + +### Android ã®ç + +* ä»»æ `cameraDirection` èé¢åçã§çµæã®å¤ãã¾ãã + +* ç¡è¦ã `allowEdit` ãã©ã¡ã¼ã¿ã¼ã + +* `Camera.PictureSourceType.PHOTOLIBRARY``Camera.PictureSourceType.SAVEDPHOTOALBUM`両æ¹ã®ã¢ã«ãã ã表示ããã¾ãåãåçã + +### ãã©ãã¯ããªã¼ 10 ç + +* ç¡è¦ã `quality` ãã©ã¡ã¼ã¿ã¼ã + +* ç¡è¦ã `sourceType` ãã©ã¡ã¼ã¿ã¼ã + +* ç¡è¦ã `allowEdit` ãã©ã¡ã¼ã¿ã¼ã + +* `Camera.MediaType`ãµãã¼ãããã¦ãã¾ããã + +* ç¡è¦ã `correctOrientation` ãã©ã¡ã¼ã¿ã¼ã + +* ç¡è¦ã `cameraDirection` ãã©ã¡ã¼ã¿ã¼ã + +### Firefox OS Quirks + +* ç¡è¦ã `quality` ãã©ã¡ã¼ã¿ã¼ã + +* `Camera.DestinationType` is ignored and equals `1` (image file URI) + +* ç¡è¦ã `allowEdit` ãã©ã¡ã¼ã¿ã¼ã + +* Ignores the `PictureSourceType` parameter (user chooses it in a dialog window) + +* Ignores the `encodingType` + +* Ignores the `targetWidth` and `targetHeight` + +* `Camera.MediaType`ãµãã¼ãããã¦ãã¾ããã + +* ç¡è¦ã `correctOrientation` ãã©ã¡ã¼ã¿ã¼ã + +* ç¡è¦ã `cameraDirection` ãã©ã¡ã¼ã¿ã¼ã + +### iOS ã®ç + +* è¨å® `quality` ä¸é¨ã®ããã¤ã¹ã§ã¡ã¢ãªä¸è¶³ã¨ã©ã¼ãé¿ããããã« 50 ã®ä¸ã + +* 使ç¨ããå ´å `destinationType.FILE_URI` ãåçãã¢ããªã±ã¼ã·ã§ã³ã®ä¸æãã£ã¬ã¯ããªã«ä¿åããã¾ãã 使ç¨ãã¦ããã®ãã£ã¬ã¯ããªã®å 容ãåé¤å¯è½æ§ãããã¾ãã `navigator.fileMgr` Api ã®ã¹ãã¬ã¼ã¸ ã¹ãã¼ã¹ãå¿ è¦ãªå ´åã + +### Tizen ã®ç + +* ãµãã¼ãããã¦ããªããªãã·ã§ã³ + +* 常ã«ãã¡ã¤ã«ã® URI ãè¿ã + +### Windows Phone 7 㨠8 ç + +* ç¡è¦ã `allowEdit` ãã©ã¡ã¼ã¿ã¼ã + +* ç¡è¦ã `correctOrientation` ãã©ã¡ã¼ã¿ã¼ã + +* ç¡è¦ã `cameraDirection` ãã©ã¡ã¼ã¿ã¼ã + +* Ignores the `mediaType` property of `cameraOptions` as the Windows Phone SDK does not provide a way to choose videos from PHOTOLIBRARY. + +## CameraError + +ã¨ã©ã¼ ã¡ãã»ã¼ã¸ãæä¾ãã onError ã³ã¼ã«ããã¯é¢æ°ã + + function(message) { + // Show a helpful message + } + + +### ãã©ã¡ã¼ã¿ã¼ + +* **ã¡ãã»ã¼ã¸**: ã¡ãã»ã¼ã¸ã¯ãããã¤ã¹ã®ãã¤ãã£ã ã³ã¼ãã«ãã£ã¦æä¾ããã¾ãã*(æåå)* + +## cameraSuccess + +ç»åãã¼ã¿ãæä¾ãã onSuccess ã³ã¼ã«ããã¯é¢æ°ã + + function(imageData) { + // Do something with the image + } + + +### ãã©ã¡ã¼ã¿ã¼ + +* **imagedata ãæ±ã**: Base64 ã¨ã³ã³ã¼ã ã¤ã¡ã¼ã¸ã®ãã¼ã¿ã*ã¾ãã¯*ç»åãã¡ã¤ã«ã«ãã£ã¦ URI ã® `cameraOptions` 广ã*(æåå)* + +### ä¾ + + // Show image + // + function cameraCallback(imageData) { + var image = document.getElementById('myImage'); + image.src = "data:image/jpeg;base64," + imageData; + } + + +## CameraPopoverHandle + +A handle to the popover dialog created by `navigator.camera.getPicture`. + +### ã¡ã½ãã + +* **setPosition**: ããã ãªã¼ãã¼ã®ä½ç½®ãè¨å®ãã¾ãã + +### ãµãã¼ãããã¦ãããã©ãããã©ã¼ã + +* iOS + +### setPosition + +ããã ãªã¼ãã¼ã®ä½ç½®ãè¨å®ãã¾ãã + +**ãã©ã¡ã¼ã¿ã¼**: + +* `cameraPopoverOptions`:ã `CameraPopoverOptions` ã®æ°ããä½ç½®ãæå®ãã¾ãã + +### ä¾ + + var cameraPopoverHandle = navigator.camera.getPicture(onSuccess, onFail, + { destinationType: Camera.DestinationType.FILE_URI, + sourceType: Camera.PictureSourceType.PHOTOLIBRARY, + popoverOptions: new CameraPopoverOptions(300, 300, 100, 100, Camera.PopoverArrowDirection.ARROW_ANY) + }); + + // Reposition the popover if the orientation changes. + window.onorientationchange = function() { + var cameraPopoverOptions = new CameraPopoverOptions(0, 0, 100, 100, Camera.PopoverArrowDirection.ARROW_ANY); + cameraPopoverHandle.setPosition(cameraPopoverOptions); + } + + +## CameraPopoverOptions + +iOS ã ãæå®ãã©ã¡ã¼ã¿ã¼ãããã ãªã¼ãã¼ã®ã¢ã³ã«ã¼è¦ç´ ã®å ´æããã³ç¢å°æ¹åè¨ç®ãããã©ã¤ãã©ãªã¾ãã¯ã¢ã«ãã ããç»åã鏿ããã¨ãã + + {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}; + + +ç¢å°ã®æ¹åã¨ãç»é¢ã®åãã調æ´ããããã ãªã¼ãã¼ã®ãµã¤ãºã夿´å¯è½æ§ãããã¾ãã«æ³¨æãã¦ãã ããã ã¢ã³ã«ã¼è¦ç´ ã®ä½ç½®ãæå®ããã¨ãã®æ¹åã®å¤åãèæ ®ãããã¨ã確èªãã¾ãã + +## navigator.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
