# TileUpdateRequester

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

*** ** * ** ***


```
interface TileUpdateRequester
```

<br />

*** ** * ** ***

Interface used for a Tile Service to notify a Tile Renderer that it should fetch a new Timeline from it.

## Summary

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/tiles/TileUpdateRequester#requestUpdate(java.lang.Class<? extends androidx.wear.tiles.TileService>)(tileService: https://developer.android.com/reference/java/lang/Class.html<https://developer.android.com/reference/kotlin/androidx/wear/tiles/TileService!>)` Notify the Tile Renderer that it should fetch a new Timeline from this Tile Service. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/tiles/TileUpdateRequester#requestUpdate(java.lang.Class<? extends androidx.wear.tiles.TileService>,int)(tileService: https://developer.android.com/reference/java/lang/Class.html<https://developer.android.com/reference/kotlin/androidx/wear/tiles/TileService!>, tileId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Notify the Tile Renderer that it should fetch a new Timeline from this Tile Service for a specific tile id. |

## Public functions

### requestUpdate

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

```
fun requestUpdate(tileService: Class<TileService!>): Unit
```

Notify the Tile Renderer that it should fetch a new Timeline from this Tile Service.

### requestUpdate

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

```
fun requestUpdate(tileService: Class<TileService!>, tileId: Int): Unit
```

Notify the Tile Renderer that it should fetch a new Timeline from this Tile Service for a specific tile id.

If sdk version is API 36 or lower, or the tile id is invalid (i.e. doesn't exist or is not owned by your package); tile id will be ignored and this method will be equivalent to `https://developer.android.com/reference/kotlin/androidx/wear/tiles/TileUpdateRequester#requestUpdate(java.lang.Class<? extends androidx.wear.tiles.TileService>)`.

| Parameters |
|---|---|
| `tileService: https://developer.android.com/reference/java/lang/Class.html<https://developer.android.com/reference/kotlin/androidx/wear/tiles/TileService!>` | The Tile Service to request an update from. |
| `tileId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The id of the tile to request an update from. |