Skip to content

Commit

Permalink
feat(camera-preview): add tapToFocus method (#1494)
Browse files Browse the repository at this point in the history
* Update index.ts

* Update index.ts
  • Loading branch information
danielsogl authored and ihadeed committed May 7, 2017
1 parent 80af551 commit 8330c92
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/@ionic-native/plugins/camera-preview/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -383,4 +383,13 @@ export class CameraPreview extends IonicNativePlugin {
@Cordova()
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; }

}

0 comments on commit 8330c92

Please sign in to comment.