getAppWidgetState
Function
Android
public suspend fun <T> getAppWidgetState(
    context: Context,
    definition: GlanceStateDefinition<T>,
    glanceId: GlanceId,
): T
Retrieve the state of an app widget.
The state definition must be the one used for that particular app widget.
Android
public suspend fun <T> GlanceAppWidget.getAppWidgetState(
    @Suppress("ContextFirst") context: Context,
    glanceId: GlanceId,
): T
Get the state of an App Widget.
