TapEvent


public final class TapEvent


An input event received by the watch face.

use Watch Face Format instead

Summary

Public constructors

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

This method is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

Public methods

boolean
equals(Object other)

This method is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

final @NonNull Instant

This method is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

final int

This method is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

final int

This method is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

int

This method is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

@NonNull String

This method is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

Public constructors

TapEvent

Added in 1.0.0
Deprecated in 1.3.0-alpha06
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
Deprecated in 1.3.0-alpha06
public final @NonNull Instant getTapTime()

The Instant at which the tap event occurred

getXPos

Added in 1.0.0
Deprecated in 1.3.0-alpha06
public final int getXPos()

X coordinate of the event

getYPos

Added in 1.0.0
Deprecated in 1.3.0-alpha06
public final int getYPos()

Y coordinate of the event

hashCode

public int hashCode()

toString

public @NonNull String toString()