feat(camera-preview): add tapToFocus method (#1494)

* Update index.ts

* Update index.ts
This commit is contained in:
Daniel Sogl 2017-05-07 16:17:00 +02:00 committed by Ibby Hadeed
parent 80af55100e
commit 8330c92921

View File

@ -383,4 +383,13 @@ export class CameraPreview extends IonicNativePlugin {
@Cordova() @Cordova()
getExposureCompensationRange(): Promise<any> { return; } getExposureCompensationRange(): Promise<any> { return; }
/**
* Set specific focus point. Note, this assumes the camera is full-screen.
* @param xPoint {number}
* @param yPoint {number}
* @return {Promise<any>}
*/
@Cordova()
tapToFocus(xPoint: number, yPoint: number): Promise<any> { return; }
} }