From ca7ab1569b59a26885e9c8a899ca481c00c11dfd Mon Sep 17 00:00:00 2001 From: rupendraa <39113656+rupendraa@users.noreply.github.com> Date: Mon, 5 Sep 2022 22:30:12 +0530 Subject: [PATCH] feat(camera-preview): add storeToFile option (#4294) /** Capture images to a file and return back the file path instead of returning base64 encoded data. */ storeToFile: boolean; --- src/@ionic-native/plugins/camera-preview/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/@ionic-native/plugins/camera-preview/index.ts b/src/@ionic-native/plugins/camera-preview/index.ts index 8fcaa5a51..5136d4925 100644 --- a/src/@ionic-native/plugins/camera-preview/index.ts +++ b/src/@ionic-native/plugins/camera-preview/index.ts @@ -31,6 +31,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;