camera takePicture parameters wrapped in an option object.

This commit is contained in:
Nedyalko Nikolov
2015-04-16 16:50:14 +03:00
committed by Rossen Hristov
parent 267ce57d09
commit d86a19cb28
3 changed files with 24 additions and 8 deletions

8
camera/camera.d.ts vendored
View File

@@ -11,5 +11,11 @@ declare module "camera" {
* @param height - Optional parameter which defines the required height of the taken picture.
* @param keepAspectRatio - Optional parameter which controls if the result picture will keep the aspect ratio of the picture taken by camera.
*/
export function takePicture(width?: number, heigth?: number, keepAspectRatio?: boolean): Promise<imageSource.ImageSource>;
export function takePicture(options?: CameraOptions): Promise<imageSource.ImageSource>;
export interface CameraOptions {
width?: number;
height?: number;
keepAspectRatio?: boolean;
}
}