AppWidgetHost

@Composable()
fun AppWidgetHost(modifier: Modifier = Modifier, displaySize: DpSize, state: AppWidgetHostState, gridColor: Color? = null)

A layout composable with an AppWidgetHostView to display the provided RemoteViews from the state.

Parameters

modifier
  • The modifier to be applied to the layout.

displaySize
  • The available size for the RemoteViews to display by the host

state
gridColor
  • The color of the grid and widget area lines or null for none.