tapToFocus

@RequiresPermission(value = "android.permission.CAMERA")
suspend fun tapToFocus(point: PointF, factory: MeteringPointFactory, viewRotationDegree: Int, timeoutDurationMs: Long)(source)

Sets the focus on tap.

Parameters

point

the point to focus

factory

the factory to normalize the view points

viewRotationDegree

the orientation of the field of view

timeoutDurationMs

duration in milliseconds after which the focus and metering will be cancelled automatically