From 6a93bb2e9b450d89112768e78c5cf888b85fcffa Mon Sep 17 00:00:00 2001 From: Martin DONADIEU Date: Thu, 6 Jan 2022 21:28:38 +0100 Subject: [PATCH] feat(camera-preview): add storeToFile param (#3958) --- src/@awesome-cordova-plugins/plugins/camera-preview/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/@awesome-cordova-plugins/plugins/camera-preview/index.ts b/src/@awesome-cordova-plugins/plugins/camera-preview/index.ts index 9bb91328a..fece1f7c0 100644 --- a/src/@awesome-cordova-plugins/plugins/camera-preview/index.ts +++ b/src/@awesome-cordova-plugins/plugins/camera-preview/index.ts @@ -30,6 +30,9 @@ export interface CameraPreviewOptions { /** Preview box drag across the screen, default 'false' */ previewDrag?: boolean; + + /** Capture images to a file and return back the file path instead of returning base64 encoded data. */ + storeToFile: boolean; /** Preview box to the back of the webview (true => back, false => front) , default false */ toBack?: boolean;