- Accelerometer
- Camera
- Capture
- Compass
- Connection
- Contacts
- Device
- Events
- File
- Geolocation
- Globalization
- InAppBrowser
- Media
- Notification
- Splashscreen
- Storage
- Overview
- Platform Guides
- The Cordova Command-line Interface
- Command-Line Usage
- Privacy Guide
- Upgrading Guides
- Project Settings
- Plugin Development Guide
- Domain Whitelist Guide
- Embedding WebView
This version of the documentation is outdated!
Click here for the latest released version.
camera.cleanup
Removes intermediate photos taken by the camera from temporary storage.
navigator.camera.cleanup( cameraSuccess, cameraError );
Description
Removes intermediate image files that are kept in temporary storage
after calling [camera.getPicture](camera.getPicture.html)
. Applies only when the value of
[Camera](camera.html).sourceType
equals [Camera](camera.html).PictureSourceType.CAMERA
and the
[Camera](camera.html).destinationType
equals [Camera](camera.html).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);
}