-
- 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 voidonAutoFocusStart(@NonNull() AutoFocusTrigger trigger, @NonNull() PointF point)Called when the autofocus process has started. abstract voidonAutoFocusEnd(@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. -
-
Method Detail
-
onAutoFocusStart
abstract void onAutoFocusStart(@NonNull() AutoFocusTrigger trigger, @NonNull() PointF point)
Called when the autofocus process has started.
- Parameters:
trigger- the autofocus triggerpoint- coordinates
-
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 triggersuccessful- whether the operation succeededpoint- coordinates
-
-
-
-