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);
}