enableTapToFocus

void enableTapToFocus(@NonNull() View tapView, @Nullable() CameraInterface.TapToFocusListener listener)

Enables tap-to-focus using the given view by adding touch handling to it and transforming the touch point coordinates to the camera sensor's coordinate system.

Note: the view should have the same size as the camera preview and be above it. You could also set the camera preview android.view.SurfaceView directly as the tap view..

Parameters

tapView

the view used to handle taps