---
title: "updateWearTileState"
description: "Update the state of a wear tile.

The state definition must be the one used for this particular tile service."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-android'>Android</div>


> **Deprecated** glance-wear-tiles is deprecated and will be removed

```kotlin
public suspend fun <T> updateWearTileState(
    context: Context,
    definition: GlanceStateDefinition<T>,
    glanceId: GlanceId,
    updateState: suspend (T) -> T,
): T
```


Update the state of a wear tile.

The state definition must be the one used for this particular tile service.

#### Parameters

| | |
| --- | --- |
| context | the context used to create this state |
| definition | the configuration that defines this state |
| glanceId | the glance id of this particular tile service |
| updateState | the block defines how the state to be updated |




