The Android Developer Challenge is back! Submit your idea before December 2.

OnFocusListener

public interface OnFocusListener

androidx.camera.core.OnFocusListener


Listener called when focus scan has completed.

Summary

Public methods

abstract void onFocusLocked(Rect afRect)

Callback when focus has been locked.

abstract void onFocusTimedOut(Rect afRect)

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

abstract void onFocusUnableToLock(Rect afRect)

Callback when unable to acquire focus.

Public methods

onFocusLocked

public abstract void onFocusLocked (Rect afRect)

Callback when focus has been locked.

Parameters
afRect Rect

onFocusTimedOut

public abstract void onFocusTimedOut (Rect afRect)

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

Parameters
afRect Rect

onFocusUnableToLock

public abstract void onFocusUnableToLock (Rect afRect)

Callback when unable to acquire focus.

Parameters
afRect Rect