-
- All Implemented Interfaces:
-
com.otaliastudios.cameraview.markers.AutoFocusMarker,com.otaliastudios.cameraview.markers.Marker
public class DefaultAutoFocusMarker implements AutoFocusMarker
A default implementation of AutoFocusMarker. You can call setAutoFocusMarker passing in this class to have basic marker drawing.
-
-
Method Summary
Modifier and Type Method Description ViewonAttach(@NonNull() Context context, @NonNull() ViewGroup container)Marker is being attached to the CameraView. voidonAutoFocusStart(@NonNull() AutoFocusTrigger trigger, @NonNull() PointF point)Called when the autofocus process has started. 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
-
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 contextcontainer- a container
-
onAutoFocusStart
void onAutoFocusStart(@NonNull() AutoFocusTrigger trigger, @NonNull() PointF point)
Called when the autofocus process has started.
- Parameters:
trigger- the autofocus triggerpoint- coordinates
-
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 triggersuccessful- whether the operation succeededpoint- coordinates
-
-
-
-