onTap

suspend fun onTap(context: Context, point: PointF, fovRect: Rect, fovRotationDegree: Int, timeoutDurationMs: Long = DEFAULT_AUTO_CANCEL_DURATION_MS)(source)

Sets the focus on tap.

Parameters

context

the application context

point

the point to focus on in fovRect coordinate system

fovRect

the field of view rectangle

fovRotationDegree

the orientation of the field of view

timeoutDurationMs

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


suspend fun onTap(context: Context, afPoints: List<PointF>, aePoints: List<PointF>, awbPoints: List<PointF>, fovRect: Rect, fovRotationDegree: 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

context

the application context

afPoints

the points where the focus is done in fovRect coordinate system

aePoints

the points where the exposure is done in fovRect coordinate system

awbPoints

the points where the white balance is done in fovRect coordinate system

fovRect

the field of view rectangle

fovRotationDegree

the orientation of the field of view

timeoutDurationMs

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