EventBuilders.TileInteractionEvent
@RequiresSchemaVersion(major = 1, minor = 400)
public final class EventBuilders.TileInteractionEvent
Event reported when a user interacts with a tile (e.g. entering or leaving a tile).
Summary
Nested types |
---|
public final class EventBuilders.TileInteractionEvent.Builder Builder for |
Constants |
|
---|---|
static final int |
ENTER = 1 User entered the tile. |
static final int |
LEAVE = 2 User left the tile. |
static final int |
UNKNOWN = 0 Unknown type |
Public methods |
|
---|---|
int |
Gets the type of the |
int |
Gets instance ID of the tile, allocated when the tile instance is added to the carousel. |
@NonNull Instant |
Gets the timestamp of when the interaction was reported. |
@NonNull String |
toString() |
Constants
Public methods
getTileId
public int getTileId()
Gets instance ID of the tile, allocated when the tile instance is added to the carousel. This ID will remain the same for this tile instance as long it is not removed from the carousel.