Stay organized with collections
Save and categorize content based on your preferences.
class TapEvent
This class is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff
An input event received by the watch face.
use Watch Face Format instead
Summary
Public constructors
This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.
Public functions
open operator Boolean
This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.
open Int
This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.
open String
This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.
Public properties
Instant
This property is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.
@Px Int
This property is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.
@Px Int
This property is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.
Public constructors
TapEvent (xPos: @Px Int , yPos: @Px Int , tapTime: Instant )
This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff
Parameters
xPos: @Px Int
X coordinate of the event
yPos: @Px Int
Y coordinate of the event
tapTime: Instant
The Instant at which the tap event occurred
Public functions
open operator fun equals (other: Any ?): Boolean
This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff
open fun hashCode (): Int
This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff
open fun toString (): String
This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff
Public properties
val tapTime : Instant
This property is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff
The Instant at which the tap event occurred
val xPos : @Px Int
This property is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff
X coordinate of the event
val yPos : @Px Int
This property is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff
Y coordinate of the event
Content and code samples on this page are subject to the licenses described in the Content License . Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2026-08-06 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-08-06 UTC."],[],[]]