Glance App Widget Host Preview
@Composable()
Content copied to clipboard
Use this composable inside a androidx.compose.ui.tooling.preview.Preview composable to display a glanceable composable
Tip: Click on the container to force a content update.
Parameters
modifier
defines the container box for the host
state
the state associated to the composable as per GlanceAppWidget.stateDefinition
displaySize
the available size for the RemoteViews, if not provider it will match parent
provider
optionally provide the AppWidgetProviderInfo to provide additional information for the host.
content
a suspend lambda returning the actual RemoteViews