Function

updateIf

Update all App Widgets managed by the GlanceAppWidget class, if they fulfill some condition.

updateIf

Source set: Android
public suspend inline fun <reified State> GlanceAppWidget.updateIf(
    @Suppress("ContextFirst") context: Context,
    predicate: (State) -> Boolean,
)

Update all App Widgets managed by the GlanceAppWidget class, if they fulfill some condition.

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: