Interface AutofocusListener

All Known Subinterfaces:
BaseCameraEventsListener, CameraEventsListener
All Known Implementing Classes:
BaseCameraView.BaseCameraListener

public interface AutofocusListener
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    This method will be called when camera focusing has failed.
    void
    onAutofocusStarted(android.graphics.Rect[] focusAreas)
    This method will be called when camera focusing has started.
    void
    onAutofocusStopped(android.graphics.Rect[] focusAreas)
    This method will be called when camera focusing has stopped.
  • Method Details

    • onAutofocusFailed

      void onAutofocusFailed()
      This method will be called when camera focusing has failed. Camera manager usually tries different focusing strategies and this method is called when all those strategies fail to indicate that either object on which camera is being focused is too close or ambient light conditions are poor.
    • onAutofocusStarted

      void onAutofocusStarted(@Nullable android.graphics.Rect[] focusAreas)
      This method will be called when camera focusing has started. You can utilize this method to draw focusing animation on UI.
      Parameters:
      focusAreas - Areas where focus is being measured. Null on devices that do not support fine-grained camera control
    • onAutofocusStopped

      void onAutofocusStopped(@Nullable android.graphics.Rect[] focusAreas)
      This method will be called when camera focusing has stopped. You can utilize this method to remove focusing animation from UI.
      Parameters:
      focusAreas - Areas where focus is being measured. Null on devices that do not support fine-grained camera control