Function

getWearTileState

Retrieve the state of a wear tile.

Deprecated

glance-wear-tiles is deprecated and will be removed

Source set: Android

Added in 1.0.0-alpha07

Deprecated in 1.0.0-alpha07

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