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 |
Public constructors
Public methods
getTapPoint
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.