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()