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

*** ** * ** ***


```
public 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 methods |
|---|---|
| `abstract void` | `https://developer.android.com/reference/androidx/wear/tiles/TileUpdateRequester#requestUpdate(java.lang.Class<? extends androidx.wear.tiles.TileService>)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/Class.html<https://developer.android.com/reference/androidx/wear/tiles/TileService> tileService)` Notify the Tile Renderer that it should fetch a new Timeline from this Tile Service. |
| `default void` | `https://developer.android.com/reference/androidx/wear/tiles/TileUpdateRequester#requestUpdate(java.lang.Class<? extends androidx.wear.tiles.TileService>,int)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/Class.html<https://developer.android.com/reference/androidx/wear/tiles/TileService> tileService, int tileId)` Notify the Tile Renderer that it should fetch a new Timeline from this Tile Service for a specific tile id. |

## Public methods

### requestUpdate

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

```
abstract void requestUpdate(@NonNull Class<TileService> tileService)
```

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)

```
default void requestUpdate(@NonNull Class<TileService> tileService, int tileId)
```

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/androidx/wear/tiles/TileUpdateRequester#requestUpdate(java.lang.Class<? extends androidx.wear.tiles.TileService>)`.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/Class.html<https://developer.android.com/reference/androidx/wear/tiles/TileService> tileService` | The Tile Service to request an update from. |
| `int tileId` | The id of the tile to request an update from. |