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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -394,5 +394,12 @@ export class CameraPreview extends IonicNativePlugin {
*/ */
@Cordova() @Cordova()
tapToFocus(xPoint: number, yPoint: number): Promise<any> { return; } 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; }
} }