cordova.define("cordova-plugin-camera.camera",function(require,exports,module){var argscheck=require("cordova/argscheck"),exec=require("cordova/exec"),Camera=require("./Camera"),cameraExport={};for(var key in Camera)cameraExport[key]=Camera[key];cameraExport.getPicture=function(successCallback,errorCallback,options){argscheck.checkArgs("fFO","Camera.getPicture",arguments),options=options||{};var getValue=argscheck.getValue,quality=getValue(options.quality,50),destinationType=getValue(options.destinationType,Camera.DestinationType.FILE_URI),sourceType=getValue(options.sourceType,Camera.PictureSourceType.CAMERA),targetWidth=getValue(options.targetWidth,-1),targetHeight=getValue(options.targetHeight,-1),encodingType=getValue(options.encodingType,Camera.EncodingType.JPEG),mediaType=getValue(options.mediaType,Camera.MediaType.PICTURE),allowEdit=!!options.allowEdit,correctOrientation=!!options.correctOrientation,saveToPhotoAlbum=!!options.saveToPhotoAlbum,popoverOptions=getValue(options.popoverOptions,null),cameraDirection=getValue(options.cameraDirection,Camera.Direction.BACK);exec(successCallback,errorCallback,"Camera","takePicture",[quality,destinationType,sourceType,targetWidth,targetHeight,encodingType,mediaType,allowEdit,correctOrientation,saveToPhotoAlbum,popoverOptions,cameraDirection])},cameraExport.cleanup=function(successCallback,errorCallback){exec(successCallback,errorCallback,"Camera","cleanup",[])},module.exports=cameraExport});