UNPKG

@dderevjanik/termux-api

Version:

This library allows you to interact with your Android device from Node.js using termux-api

24 lines (23 loc) 582 B
export interface CameraPhotoOptions { /** * ID of the camera to use (see termux-camera-info) * @default 0 */ cameraId?: number; /** * Photo is saved at specified file path * @default DATE_TIME.jpg */ output?: string; /** * Timeout in milliseconds for the command execution * @default 3000 */ timeout?: number; } /** * Take a photo and save it to a file in JPEG format * * **Requires permission** `android.permission.CAMERA` */ export declare function cameraPhoto(options?: CameraPhotoOptions): Promise<void>;