public final class

EventBuilders.TileAddEvent

extends java.lang.Object

 java.lang.Object

↳androidx.wear.tiles.EventBuilders.TileAddEvent

Overview

Event fired when a tile has been added to the carousel.

Summary

Methods
public static EventBuilders.TileAddEventfromProto(EventProto.TileAddEvent proto)

Creates a new wrapper instance from the proto.

public intgetTileId()

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

public EventProto.TileAddEventtoProto()

Returns the internal proto instance.

public java.lang.StringtoString()

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

Methods

public int getTileId()

Gets the 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.

Creates a new wrapper instance from the proto.

public EventProto.TileAddEvent toProto()

Returns the internal proto instance.

public java.lang.String toString()