Package 

Interface AutoFocusMarker

  • All Implemented Interfaces:
    com.otaliastudios.cameraview.markers.Marker

    
    public interface AutoFocusMarker
     implements Marker
                        

    A marker for the autofocus operations. Receives callback when focus starts, ends successfully or failed, and can be used to draw on screen. The point coordinates are meant with respect to CameraView width and height, so a 0, 0 point means that focus is happening on the top-left visible corner.

    • Method Summary

      Modifier and Type Method Description
      abstract void onAutoFocusStart(@NonNull() AutoFocusTrigger trigger, @NonNull() PointF point) Called when the autofocus process has started.
      abstract void onAutoFocusEnd(@NonNull() AutoFocusTrigger trigger, boolean successful, @NonNull() PointF point) Called when the autofocus process has ended, and the camera convergedto a new focus or failed while trying to do so.
      • Methods inherited from class com.otaliastudios.cameraview.markers.Marker

        onAttach
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onAutoFocusEnd

         abstract void onAutoFocusEnd(@NonNull() AutoFocusTrigger trigger, boolean successful, @NonNull() PointF point)

        Called when the autofocus process has ended, and the camera convergedto a new focus or failed while trying to do so.

        Parameters:
        trigger - the autofocus trigger
        successful - whether the operation succeeded
        point - coordinates