public final class

EventBuilders.TileInteractionEvent

extends java.lang.Object

 java.lang.Object

↳androidx.wear.tiles.EventBuilders.TileInteractionEvent

Overview

Event reported when a user interacts with a tile (e.g. entering or leaving a tile).

Summary

Fields
public static final intENTER

User entered the tile.

public static final intLEAVE

User left the tile.

public static final intUNKNOWN

Unknown type

Methods
public static EventBuilders.TileInteractionEventfromProto(EventProto.TileInteractionEvent proto)

Creates a new wrapper instance from the proto.

public intgetEventType()

Gets the type of the EventBuilders.TileInteractionEvent.

public intgetTileId()

Gets instance ID of the tile, allocated when the tile instance is added to the carousel.

public java.time.InstantgetTimestamp()

Gets the timestamp of when the interaction was reported.

public EventProto.TileInteractionEventtoProto()

Returns the internal proto instance.

public java.lang.StringtoString()

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Fields

public static final int UNKNOWN

Unknown type

public static final int ENTER

User entered the tile.

public static final int LEAVE

User left the tile.

Methods

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.

public int getEventType()

Gets the type of the EventBuilders.TileInteractionEvent.

public java.time.Instant getTimestamp()

Gets the timestamp of when the interaction was reported. Defaults to now (Created at the time of EventBuilders.TileInteractionEvent.Builder.Builder(int, int) constructor call) if not provided.

Creates a new wrapper instance from the proto.

Returns the internal proto instance.

public java.lang.String toString()