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<any> { return; } + + /** + * Add a listener for the back event for the preview + * @return {Promise<any>} if backbutton pressed + */ + @Cordova() + onBackButton(): Promise<any> { return; } }