OnAutoFocusListener

interface OnAutoFocusListener
androidx.camera.core.FocusMeteringAction.OnAutoFocusListener

Listener for receiving auto-focus completion event.

Summary

Public methods

abstract Unit
onFocusCompleted(isFocusLocked: Boolean)

Called when camera auto focus completes or when the action is cancelled before auto-focus completes.

Public methods

onFocusCompleted

abstract fun onFocusCompleted(isFocusLocked: Boolean): Unit

Called when camera auto focus completes or when the action is cancelled before auto-focus completes.

Parameters
isFocusLocked Boolean: true if focus is locked successfully, false otherwise.