mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
15 lines
496 B
TypeScript
15 lines
496 B
TypeScript
/**
|
|
* Allows you to take pictrues with the device's camera.
|
|
*/
|
|
declare module "camera" {
|
|
|
|
import imageSource = require("image-source");
|
|
|
|
/**
|
|
* 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.
|
|
*/
|
|
export function takePicture(width?: number, heigth?: number): Promise<imageSource.ImageSource>;
|
|
}
|