From a345e2c6f1569c1b86cdd4a0c78752c950113e8e Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Sat, 17 Mar 2018 11:15:42 +0100 Subject: [PATCH] feat(camera-preview): add onBackButton function fixes: #1967 --- src/@ionic-native/plugins/camera-preview/index.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/@ionic-native/plugins/camera-preview/index.ts b/src/@ionic-native/plugins/camera-preview/index.ts index 4545d9635..b4f1e2fb6 100644 --- a/src/@ionic-native/plugins/camera-preview/index.ts +++ b/src/@ionic-native/plugins/camera-preview/index.ts @@ -394,5 +394,12 @@ export class CameraPreview extends IonicNativePlugin { */ @Cordova() tapToFocus(xPoint: number, yPoint: number): Promise { return; } + + /** + * Add a listener for the back event for the preview + * @return {Promise} if backbutton pressed + */ + @Cordova() + onBackButton(): Promise { return; } }