Function

getWearTileState

Retrieve the state of a wear tile.

getWearTileState

Source set: Android
@Deprecated("glance-wear-tiles is deprecated and will be removed")
public suspend fun <T> getWearTileState(
    context: Context,
    definition: GlanceStateDefinition<T>,
    glanceId: GlanceId,
): T

Retrieve the state of a wear tile.

The state definition must be the one used for that particular wear tile.

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
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: