onTap

@RequiresPermission(value = "android.permission.CAMERA")
suspend fun onTap(afPoints: List<PointF>, aePoints: List<PointF>, awbPoints: List<PointF>, factory: MeteringPointFactory, viewRotationDegree: Int, timeoutDurationMs: Long = DEFAULT_AUTO_CANCEL_DURATION_MS)(source)

Sets the focus on tap.

At least one of lost of points must not be empty.

Parameters

afPoints

the points where the focus is done

aePoints

the points where the exposure is done

awbPoints

the points where the white balance is done

factory

the factory to normalize the view points

viewRotationDegree

the orientation of the view

timeoutDurationMs

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