You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2012/06/07 01:55:08 UTC

docs commit: Fixes CB-506 - added navigator.camera.cleanup

Updated Branches:
  refs/heads/master 818ecbf8c -> bd6727083


Fixes CB-506 - added navigator.camera.cleanup


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/bd672708
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/tree/bd672708
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/diff/bd672708

Branch: refs/heads/master
Commit: bd6727083ad7bb37fd9f4977345cd8c71646d384
Parents: 818ecbf
Author: shazron <sh...@gmail.com>
Authored: Wed Jun 6 16:55:02 2012 -0700
Committer: shazron <sh...@gmail.com>
Committed: Wed Jun 6 16:55:02 2012 -0700

----------------------------------------------------------------------
 docs/en/edge/cordova/camera/camera.cleanup.md |   50 ++++++++++++++++++++
 docs/en/edge/cordova/camera/camera.md         |    1 +
 2 files changed, 51 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/bd672708/docs/en/edge/cordova/camera/camera.cleanup.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/cordova/camera/camera.cleanup.md b/docs/en/edge/cordova/camera/camera.cleanup.md
new file mode 100644
index 0000000..fbf9e13
--- /dev/null
+++ b/docs/en/edge/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
+=================
+
+Cleans up the image files that were taken by the camera, that were stored in a temporary storage location.
+
+    navigator.camera.cleanup( cameraSuccess, cameraError );
+
+Description
+-----------
+
+Cleans up the image files stored in the temporary storage location, when the function `camera.getPicture` is used with  `Camera.sourceType = Camera.PictureSourceType.CAMERA` and `Camera.destinationType = Camera.DestinationType.FILE_URI`
+
+
+Supported Platforms
+-------------------
+
+- iOS
+
+
+Example
+-------------
+
+    navigator.camera.cleanup(onSuccess, onFail); 
+
+    function onSuccess() {
+        console.log("Camera cleanup success.")
+    }
+
+    function onFail(message) {
+        alert('Failed because: ' + message);
+    }

http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/bd672708/docs/en/edge/cordova/camera/camera.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/cordova/camera/camera.md b/docs/en/edge/cordova/camera/camera.md
index c18e98d..aa09ac9 100644
--- a/docs/en/edge/cordova/camera/camera.md
+++ b/docs/en/edge/cordova/camera/camera.md
@@ -26,6 +26,7 @@ Methods
 -------
 
 - camera.getPicture
+- camera.cleanup
 
 Permissions
 -----------