OnFocusListener

interface OnFocusListener
androidx.camera.core.OnFocusListener

Listener called when focus scan has completed.

Summary

Public methods

abstract Unit
onFocusLocked(afRect: Rect!)

Callback when focus has been locked.

abstract Unit

Callback when timeout is reached and af state haven't settled.

abstract Unit

Callback when unable to acquire focus.

Public methods

onFocusLocked

abstract fun onFocusLocked(afRect: Rect!): Unit

Callback when focus has been locked.

onFocusTimedOut

abstract fun onFocusTimedOut(afRect: Rect!): Unit

Callback when timeout is reached and af state haven't settled.

onFocusUnableToLock

abstract fun onFocusUnableToLock(afRect: Rect!): Unit

Callback when unable to acquire focus.