fix(camera): camera options should be optional. Fixes #413 (#417)

This commit is contained in:
Kessiler 2016-08-11 08:29:14 -03:00 committed by Ibrahim Hadeed
parent 154c029f79
commit c60c3b7671

View File

@ -188,13 +188,13 @@ export class Camera {
/** /**
* Take a picture or video, or load one from the library. * Take a picture or video, or load one from the library.
* @param {CameraOptions} options Options that you want to pass to the camera. Encoding type, quality, etc. * @param {CameraOptions?} options Options that you want to pass to the camera. Encoding type, quality, etc. Optional
* @return {Promise} Returns a Promise that resolves with Base64 encoding of the image data, or the image file URI, depending on cameraOptions, otherwise rejects with an error. * @return {Promise} Returns a Promise that resolves with Base64 encoding of the image data, or the image file URI, depending on cameraOptions, otherwise rejects with an error.
*/ */
@Cordova({ @Cordova({
callbackOrder: 'reverse' callbackOrder: 'reverse'
}) })
static getPicture(options: CameraOptions): Promise<any> { return; } static getPicture(options?: CameraOptions): Promise<any> { return; }
/** /**
* Remove intermediate image files that are kept in temporary storage after calling camera.getPicture. * Remove intermediate image files that are kept in temporary storage after calling camera.getPicture.