# EventBuilders.TileAddEvent.Builder

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.Builder) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.0.0)

*** ** * ** ***


```
public final class EventBuilders.TileAddEvent.Builder
```

<br />

*** ** * ** ***

Builder for `https://developer.android.com/reference/androidx/wear/tiles/EventBuilders.TileAddEvent`

## Summary

| ### Public constructors |
|---|
| `@https://developer.android.com/reference/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 0) https://developer.android.com/reference/androidx/wear/tiles/EventBuilders.TileAddEvent.Builder#Builder()()` Creates an instance of `https://developer.android.com/reference/androidx/wear/tiles/EventBuilders.TileAddEvent.Builder`. |

| ### Public methods |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/EventBuilders.TileAddEvent` | `https://developer.android.com/reference/androidx/wear/tiles/EventBuilders.TileAddEvent.Builder#build()()` Builds an instance from accumulated values. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/EventBuilders.TileAddEvent.Builder` | `https://developer.android.com/reference/androidx/wear/tiles/EventBuilders.TileAddEvent.Builder#setTileId(int)(int tileId)` Sets instance ID of the added tile, allocated when the tile instance was added to the carousel. |

## Public constructors

### Builder

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

```
@RequiresSchemaVersion(major = 1, minor = 0)
public Builder()
```

Creates an instance of `https://developer.android.com/reference/androidx/wear/tiles/EventBuilders.TileAddEvent.Builder`.

## Public methods

### build

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

```
public @NonNull EventBuilders.TileAddEvent build()
```

Builds an instance from accumulated values.

### setTileId

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

```
public @NonNull EventBuilders.TileAddEvent.Builder setTileId(int tileId)
```

Sets instance ID of the added tile, allocated when the tile instance was added to the carousel. This ID will remain the same for this tile instance as long it is not removed from the carousel.