TapType
object TapType
The types of tap events the system can forward to the watch face.
use Watch Face Format instead
Summary
Constants |
|
|---|---|
const Int |
This property is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
const Int |
This property is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
const Int |
This property is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
Constants
CANCEL
const val CANCEL: Int
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
const val DOWN: Int
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
const val UP: Int
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.