object TapType


The types of tap events the system can forward to the watch face.

Summary

Constants

const Int

Used in to indicate that a previous TapType.DOWN touch event has been canceled.

const Int

Used to indicate a "down" touch event on the watch face.

const Int

Used to indicate that an "up" event on the watch face has occurred that has not been consumed by the system.

Constants

CANCEL

Added in 1.2.0
const val CANCELInt

Used in to indicate that a previous TapType.DOWN touch event has been canceled. This generally happens when the watch face is touched but then a move or long press occurs.

The watch face should not trigger any action, as the system is already processing the gesture.

DOWN

Added in 1.2.0
const val DOWNInt

Used to indicate a "down" touch event on the watch face.

The watch face will receive an UP or a CANCEL event to follow this event, to indicate whether this down event corresponds to a tap gesture to be handled by the watch face, or a different type of gesture that is handled by the system, respectively.

UP

Added in 1.2.0
const val UPInt

Used to indicate that an "up" event on the watch face has occurred that has not been consumed by the system. A TapType.DOWN will always occur first. This event will not be sent if a TapType.CANCEL is sent.

Therefore, a TapType.DOWN event and the successive TapType.UP event are guaranteed to be close enough to be considered a tap according to the value returned by android.view.ViewConfiguration.getScaledTouchSlop.