mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
camera takePicture parameters wrapped in an option object.
This commit is contained in:
committed by
Rossen Hristov
parent
267ce57d09
commit
d86a19cb28
8
camera/camera.d.ts
vendored
8
camera/camera.d.ts
vendored
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user