AndroidRemoteViews

Functions summary

Unit

Add RemoteViews into a glance composition.

Unit
@Composable
AndroidRemoteViews(
    remoteViews: RemoteViews,
    containerViewId: @IdRes Int,
    modifier: GlanceModifier,
    content: @Composable () -> Unit
)

Add RemoteViews into a glance composition as a container.

Functions

AndroidRemoteViews

@Composable
fun AndroidRemoteViews(
    remoteViews: RemoteViews,
    modifier: GlanceModifier = GlanceModifier
): Unit

Add RemoteViews into a glance composition.

Parameters
remoteViews: RemoteViews

the views to add to the composition.

modifier: GlanceModifier = GlanceModifier

modifier used to adjust the layout algorithm or draw decoration content.

AndroidRemoteViews

@Composable
fun AndroidRemoteViews(
    remoteViews: RemoteViews,
    containerViewId: @IdRes Int,
    modifier: GlanceModifier = GlanceModifier,
    content: @Composable () -> Unit
): Unit

Add RemoteViews into a glance composition as a container.

Parameters
remoteViews: RemoteViews

the views to add to the composition.

containerViewId: @IdRes Int

defines the view id of the container in the RemoteViews provided. Any pre-existing children of that view will be removed with RemoteViews.removeAllViews, and any children defined in the content block will be added with RemoteViews.addView (or RemoteViews.addStableView if available on the system).

modifier: GlanceModifier = GlanceModifier

modifier used to adjust the layout algorithm or draw decoration content.

content: @Composable () -> Unit

the content that will be added to the provided container.