Note: As of July 10, 2024, watch faces must use the Watch Face Format in order to be installed on new watches that launch with Wear OS 5 pre-installed. Learn more about the user-facing changes in this Help Center article.

Additionally, starting in early 2025 (specific date to be announced during Q4 2024), all new watch faces published on Google Play must use the Watch Face Format.

public final class TapEvent


An input event received by the watch face.

Summary

Public constructors

TapEvent(@Px int xPos, @Px int yPos, @NonNull Instant tapTime)

Public methods

boolean
equals(Object other)
final @NonNull Instant

The Instant at which the tap event occurred

final int

X coordinate of the event

final int

Y coordinate of the event

int
@NonNull String

Public constructors

TapEvent

Added in 1.0.0
public TapEvent(@Px int xPos, @Px int yPos, @NonNull Instant tapTime)
Parameters
@Px int xPos

X coordinate of the event

@Px int yPos

Y coordinate of the event

@NonNull Instant tapTime

The Instant at which the tap event occurred

Public methods

equals

public boolean equals(Object other)

getTapTime

Added in 1.0.0
public final @NonNull Instant getTapTime()

The Instant at which the tap event occurred

getXPos

Added in 1.0.0
public final int getXPos()

X coordinate of the event

getYPos

Added in 1.0.0
public final int getYPos()

Y coordinate of the event

hashCode

public int hashCode()

toString

public @NonNull String toString()