# EventBuilders.TileAddEvent

Artifact: [androidx.wear.tiles:tiles](https://developer.android.com/jetpack/androidx/releases/wear-tiles) [View Source](https://cs.android.com/search?q=file:androidx/wear/tiles/EventBuilders.java+class:androidx.wear.tiles.EventBuilders.TileAddEvent) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.0.0)

*** ** * ** ***


```
@RequiresSchemaVersion(major = 1, minor = 0)
public final class EventBuilders.TileAddEvent
```

<br />

*** ** * ** ***

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

## Summary

| ### Nested types |
|---|
| `public final class https://developer.android.com/reference/androidx/wear/tiles/EventBuilders.TileAddEvent.Builder` Builder for `https://developer.android.com/reference/androidx/wear/tiles/EventBuilders.TileAddEvent` |

| ### Public methods |
|---|---|
| `int` | `https://developer.android.com/reference/androidx/wear/tiles/EventBuilders.TileAddEvent#getTileId()()` Gets the instance ID of the tile, allocated when the tile instance is added to the carousel. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/wear/tiles/EventBuilders.TileAddEvent#toString()()` |

## Public methods

### getTileId

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.2.0)

```
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.

### toString

```
public @NonNull String toString()
```