Interface AutofocusListener

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onAutofocusFailed()
      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 Detail

      • 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