focusTo

suspend fun focusTo(viewPoint: Offset, options: FocusOptions = FocusOptions())

Focuses the Camera pipeline to the specified viewPoint relative to the SkiaCamera's coordinate system, using the specified MeteringModes of the options.

// Focus center
camera.focusTo(Offset(width / 2f, height / 2f))

Throws

If the Camera is not ready yet, or no Frame has been rendered yet.