public static interface AutoFocusStateMachine.AutoFocusStateListener
onCaptureCompleted
.Modifier and Type | Method and Description |
---|---|
void |
onAutoFocusFail(CaptureResult result,
boolean locked)
The camera is currently not focused (either active or passive).
|
void |
onAutoFocusInactive(CaptureResult result)
The camera is currently not doing anything with the autofocus.
|
void |
onAutoFocusScan(CaptureResult result)
The camera is currently scanning (either active or passive)
and has not yet converged.
|
void |
onAutoFocusSuccess(CaptureResult result,
boolean locked)
The camera is currently focused (either active or passive).
|
void onAutoFocusSuccess(CaptureResult result, boolean locked)
locked
- True if the lens has been locked from moving, false otherwise.void onAutoFocusFail(CaptureResult result, boolean locked)
locked
- False if the AF is still scanning, true if needs a restart.void onAutoFocusScan(CaptureResult result)
This is not called for results where the AF either succeeds or fails.
void onAutoFocusInactive(CaptureResult result)
Autofocus could be off, or this could be an intermediate state transition as scanning restarts.