feat(camera-preview): add onBackButton function

fixes: #1967
This commit is contained in:
Daniel Sogl
2018-03-17 11:15:42 +01:00
committed by GitHub
parent 8dc5ad2ee6
commit a345e2c6f1
@@ -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; }
}