GlanceRemoteViews
Class
Android
@ExperimentalGlanceRemoteViewsApi
public class GlanceRemoteViews
Object containing the information needed to generate a RemoteViews. The same instance should be
reused to compose layouts for a host view.
Functions
public suspend fun compose(
        context: Context,
        size: DpSize,
        state: Any? = null,
        appWidgetOptions: Bundle = Bundle(),
        content: @Composable () -> Unit,
    ): RemoteViewsCompositionResult
Triggers the composition of content and returns the result.
Parameters
| context | The Contextto get the resources duringRemoteViewsbuilding. | 
| state | Local view state that can be passed to composition through LocalState. | 
| size | Size of the RemoteViewsto be displayed at. | 
| appWidgetOptions | AppWidget options Bundleto be passed to composition throughLocalAppWidgetOptions. | 
| content | Definition of the UI. | 
Returns
| Composition result containing the RemoteViews. | 
