- Overview
- The Command-line Interface
- Platform Guides
- Configuration Reference
- Embedding WebViews
- Plugin Development Guide
- Privacy Guide
- Domain Whitelist Guide
- Accelerometer
- Camera
- Capture
- Compass
- Connection
- Contacts
- Device
- Events
- File
- Geolocation
- Globalization
- InAppBrowser
- Media
- Notification
- Splashscreen
- Storage
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);
}