我正在使用$ cordovaCamera插件,我想检测用户取消照片的时间。当我运行设备的原生相机时,有2个选项,保存或取消照片。我想要它,当我选择不保存照片,即取消它,我需要放一个代码指令,例如$ state.go()
var options = {
quality: 100,
destinationType: Camera.DestinationType.DATA_URL,
sourceType: Camera.PictureSourceType.CAMERA,
allowEdit: true,
encodingType: Camera.EncodingType.JPEG,
targetWidth: 300,
targetHeight: 300,
popoverOptions: CameraPopoverOptions,
saveToPhotoAlbum: true
};
//this metod only works when the photo is taken
$cordovaCamera.getPicture(options).then(function (imageData) {
}, function (err) {
});