From 8330c92921619b8fb38100e85918799645eda7a2 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Sun, 7 May 2017 16:17:00 +0200 Subject: [PATCH] feat(camera-preview): add tapToFocus method (#1494) * Update index.ts * Update index.ts --- src/@ionic-native/plugins/camera-preview/index.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/@ionic-native/plugins/camera-preview/index.ts b/src/@ionic-native/plugins/camera-preview/index.ts index bf7af50ae..b1c233363 100644 --- a/src/@ionic-native/plugins/camera-preview/index.ts +++ b/src/@ionic-native/plugins/camera-preview/index.ts @@ -383,4 +383,13 @@ export class CameraPreview extends IonicNativePlugin { @Cordova() getExposureCompensationRange(): Promise { return; } + /** + * Set specific focus point. Note, this assumes the camera is full-screen. + * @param xPoint {number} + * @param yPoint {number} + * @return {Promise} + */ + @Cordova() + tapToFocus(xPoint: number, yPoint: number): Promise { return; } + }