Package 

Class DefaultAutoFocusMarker

    • Method Summary

      Modifier and Type Method Description
      View onAttach(@NonNull() Context context, @NonNull() ViewGroup container) Marker is being attached to the CameraView.
      void onAutoFocusStart(@NonNull() AutoFocusTrigger trigger, @NonNull() PointF point) Called when the autofocus process has started.
      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.AutoFocusMarker

        onAutoFocusEnd
      • Methods inherited from class java.lang.Object

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

      • onAttach

        @Nullable() View onAttach(@NonNull() Context context, @NonNull() ViewGroup container)

        Marker is being attached to the CameraView. If a View is returned,it becomes part of the hierarchy and is automatically translated (if possible)to match the event place on screen, for example the point where autofocus was startedby the user finger.

        Parameters:
        context - a context
        container - a container
      • onAutoFocusEnd

         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