TapToFocusInfo


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(focusState: Int, tapPoint: PointF?)

Public properties

Int

The focus state of the camera.

PointF?

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

Public constructors

TapToFocusInfo

Added in 1.5.0-alpha06
TapToFocusInfo(focusState: Int, tapPoint: PointF?)

Public properties

focusState

Added in 1.5.0-alpha06
val focusStateInt

The focus state of the camera.

tapPoint

Added in 1.5.0-alpha06
val tapPointPointF?

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.