# EventBuilders.TileEnterEvent

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

<br />

*** ** * ** ***

Event fired when a tile is swiped to by the user (i.e. it's visible on screen).

## Summary

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

| ### Public methods |
|---|---|
| `int` | `https://developer.android.com/reference/androidx/wear/tiles/EventBuilders.TileEnterEvent#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.TileEnterEvent#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()
```