TapEvent

public final class TapEvent


An input event received by the watch face.

Summary

Public fields

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

Public constructors

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

Public methods

boolean
int
@NonNull String

Public fields

tapTime

@NonNull
public final @NonNull Instant tapTime

The Instant at which the tap event occurred

xPos

@NonNull
public final int xPos

X coordinate of the event

yPos

@NonNull
public final int yPos

Y coordinate of the event

Public constructors

TapEvent

public final 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

@NonNull
public boolean equals(@Nullable Object other)

hashCode

@NonNull
public int hashCode()

toString

@NonNull
public String toString()