# EventBuilders.TileEnterEvent

# 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)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/wear/tiles/EventBuilders.TileEnterEvent "View this page in Java")

<br />

```
@RequiresSchemaVersion(major = 1, minor = 0)
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                                                                                                                                   |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `class `[EventBuilders.TileEnterEvent.Builder](https://developer.android.com/reference/kotlin/androidx/wear/tiles/EventBuilders.TileEnterEvent.Builder) Builder for[TileEnterEvent](https://developer.android.com/reference/kotlin/androidx/wear/tiles/EventBuilders.TileEnterEvent) |

|                               ### Public functions                                |
|-----------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)       | [getTileId](https://developer.android.com/reference/kotlin/androidx/wear/tiles/EventBuilders.TileEnterEvent#getTileId())`()` Gets the instance ID of the tile, allocated when the tile instance is added to the carousel. |
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) | [toString](https://developer.android.com/reference/kotlin/androidx/wear/tiles/EventBuilders.TileEnterEvent#toString())`()`                                                                                                |

## Public functions

### getTileId

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

```
fun getTileId(): Int
```

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

```
fun toString(): String
```