TapToFocusInfo


public final class TapToFocusInfo


Describes the focus state and tap location that CameraController uses for tap-to-focus feature corresponding to the PreviewView touch events.

Summary

Public constructors

TapToFocusInfo(int focusState, PointF tapPoint)

Public methods

final int

The focus state of the camera.

final PointF

The PreviewView co-ordinates of user's touch event corresponding to this focusing event.

Public constructors

TapToFocusInfo

Added in 1.5.0
public TapToFocusInfo(int focusState, PointF tapPoint)

Public methods

getFocusState

Added in 1.5.0
public final int getFocusState()

The focus state of the camera.

getTapPoint

Added in 1.5.0
public final PointF getTapPoint()

The PreviewView co-ordinates of user's touch event corresponding to this focusing event. This can be null when a focusing event is not due to the user's touch event. For example, FocusOnTap(TAP_TO_FOCUS_NOT_STARTED, null) is used when there is no focusing event ongoing e.g. during initialization or after a focus event has been completed.