Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

FocusMeteringAction.OnAutoFocusListener

public static interface FocusMeteringAction.OnAutoFocusListener

androidx.camera.core.FocusMeteringAction.OnAutoFocusListener


Listener for receiving auto-focus completion event.

Summary

Public methods

abstract void onFocusCompleted(boolean isFocusLocked)

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

Public methods

onFocusCompleted

public abstract void onFocusCompleted (boolean isFocusLocked)

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.