mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Added keep aspect ratio parameter to camera.takePicture method.
This commit is contained in:
committed by
Rossen Hristov
parent
f28ff80e63
commit
267ce57d09
3
camera/camera.d.ts
vendored
3
camera/camera.d.ts
vendored
@@ -9,6 +9,7 @@ declare module "camera" {
|
||||
* Take a photo using the camera.
|
||||
* @param width - Optional parameter which defines the required width of the taken picture.
|
||||
* @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): Promise<imageSource.ImageSource>;
|
||||
export function takePicture(width?: number, heigth?: number, keepAspectRatio?: boolean): Promise<imageSource.ImageSource>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user