The Developer Preview for Android 11 is now available; test it out and share your feedback.

FocusMeteringResult

public final class FocusMeteringResult
extends Object

java.lang.Object
   ↳ androidx.camera.core.FocusMeteringResult


Result of the CameraControl.startFocusAndMetering(FocusMeteringAction).

Summary

Public methods

boolean isFocusSuccessful()

Returns if auto focus is successful.

Inherited methods

Public methods

isFocusSuccessful

public boolean isFocusSuccessful ()

Returns if auto focus is successful.

If AF is requested in FocusMeteringAction but current camera does not support AF, it will return true. If AF is not requested, it will return false.

Returns
boolean