# AndroidRemoteViews

## Functions summary

|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/glance/appwidget/AndroidRemoteViews.composable#AndroidRemoteViews(android.widget.RemoteViews,androidx.glance.GlanceModifier)(remoteViews: https://developer.android.com/reference/android/widget/RemoteViews.html, modifier: https://developer.android.com/reference/kotlin/androidx/glance/GlanceModifier)` Add `https://developer.android.com/reference/android/widget/RemoteViews.html` into a glance composition. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/glance/appwidget/AndroidRemoteViews.composable#AndroidRemoteViews(android.widget.RemoteViews,kotlin.Int,androidx.glance.GlanceModifier,kotlin.Function0)( remoteViews: https://developer.android.com/reference/android/widget/RemoteViews.html, containerViewId: @https://developer.android.com/reference/kotlin/androidx/annotation/IdRes https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, modifier: https://developer.android.com/reference/kotlin/androidx/glance/GlanceModifier, content: @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable () -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html )` Add `https://developer.android.com/reference/android/widget/RemoteViews.html` into a glance composition as a container. |

## Functions

### AndroidRemoteViews

Artifact: [androidx.glance:glance-appwidget](https://developer.android.com/jetpack/androidx/releases/glance) [View Source](https://cs.android.com/search?q=file:androidx/glance/appwidget/AndroidRemoteViews.kt+function:AndroidRemoteViews) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/glance#1.0.0)

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

Add `https://developer.android.com/reference/android/widget/RemoteViews.html` into a glance composition.

| Parameters |
|---|---|
| `remoteViews: https://developer.android.com/reference/android/widget/RemoteViews.html` | the views to add to the composition. |
| `modifier: https://developer.android.com/reference/kotlin/androidx/glance/GlanceModifier = GlanceModifier` | modifier used to adjust the layout algorithm or draw decoration content. |

### AndroidRemoteViews

Artifact: [androidx.glance:glance-appwidget](https://developer.android.com/jetpack/androidx/releases/glance) [View Source](https://cs.android.com/search?q=file:androidx/glance/appwidget/AndroidRemoteViews.kt+function:AndroidRemoteViews) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/glance#1.0.0)

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

Add `https://developer.android.com/reference/android/widget/RemoteViews.html` into a glance composition as a container.

| Parameters |
|---|---|
| `remoteViews: https://developer.android.com/reference/android/widget/RemoteViews.html` | the views to add to the composition. |
| `containerViewId: @https://developer.android.com/reference/kotlin/androidx/annotation/IdRes https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | defines the view id of the container in the `https://developer.android.com/reference/android/widget/RemoteViews.html` provided. Any pre-existing children of that view will be removed with `https://developer.android.com/reference/android/widget/RemoteViews.html#removeAllViews(int)`, and any children defined in the `https://developer.android.com/reference/kotlin/androidx/glance/appwidget/package-summary#AndroidRemoteViews(android.widget.RemoteViews,kotlin.Int,androidx.glance.GlanceModifier,kotlin.Function0)` block will be added with `https://developer.android.com/reference/android/widget/RemoteViews.html#addView(int, android.widget.RemoteViews)` (or `https://developer.android.com/reference/android/widget/RemoteViews.html#addStableView(int, android.widget.RemoteViews, int)` if available on the system). |
| `modifier: https://developer.android.com/reference/kotlin/androidx/glance/GlanceModifier = GlanceModifier` | modifier used to adjust the layout algorithm or draw decoration content. |
| `content: @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable () -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | the content that will be added to the provided container. |