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](camera.getPicture.html) is used with [Camera](camera.html).sourceType = [Camera](camera.html).PictureSourceType.CAMERA and [Camera](camera.html).destinationType = [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);
}