Google is committed to advancing racial equity for Black communities. See how.

TapType

annotation class TapType
androidx.wear.watchface.TapType

Summary

Constants
const Int

Used in WatchFace#onTapCommand to indicate that an "up" event on the watch face has occurred that has not been consumed by another activity.

const Int

Used in WatchFace#onTapCommand to indicate a "down" touch event on the watch face.

const Int

Used in WatchFace#onTapCommand to indicate that a previous TapType.

Public constructors

Constants

TAP

const val TAP: Int

Used in WatchFace#onTapCommand to indicate that an "up" event on the watch face has occurred that has not been consumed by another activity. A TapType.TOUCH will always occur first. This event will not occur if a TapType.TOUCH_CANCEL is sent.

Value: IInteractiveWatchFaceSysUI.TAP_TYPE_TAP

TOUCH

const val TOUCH: Int

Used in WatchFace#onTapCommand to indicate a "down" touch event on the watch face.

Value: IInteractiveWatchFaceSysUI.TAP_TYPE_TOUCH

TOUCH_CANCEL

const val TOUCH_CANCEL: Int

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

Value: IInteractiveWatchFaceSysUI.TAP_TYPE_TOUCH_CANCEL

Public constructors

<init>

TapType()