-
actionRunCallback
Creates an Action that executes a given ActionCallback implementation
-
actionSendBroadcast
Creates an Action that launches the BroadcastReceiver specified by the given action.
-
actionStartActivity
Creates an Action that launches an Activity from the given Intent when triggered.
-
actionStartService
Creates an Action that launches a Service from the given Intent when triggered.
-
appWidgetBackground
Define the current view as the background of the App Widget.
-
background
Apply a background color to the element this modifier is attached to.
-
compose
Creates a snapshot of the GlanceAppWidget content without running recomposition.
-
composeForPreview
Runs the composition in [GlanceAppWidget.
-
cornerRadius
Adds rounded corners for the current view.
-
getAppWidgetState
Retrieve the state of an app widget.
-
ImageProvider
Image resource from a URI.
-
items
Adds a list of items.
-
itemsIndexed
Adds a list of items where the content of an item is aware of its index.
-
provideContent
Provides content to the Glance host, suspending until the Glance session is shut down.
-
runComposition
Returns a Flow<RemoteViews> that, on collection, starts a composition session for this GlanceAppWidget and emits RemoteViews for each result.
-
selectableGroup
Use this modifier to group a list of RadioButtons together for accessibility purposes.
-
setWidgetPreviews
Generate and publish the widget previews for a GlanceAppWidgetReceiver for the given set of widgetCategories.
-
updateAll
Update all App Widgets managed by the GlanceAppWidget class.
-
updateAppWidgetState
Update the state of an app widget.
-
updateIf
Update all App Widgets managed by the GlanceAppWidget class, if they fulfill some condition.
Glance App Widget
Jetpack Compose API reference for glance-appwidget.