# LazyVerticalGrid

## 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/lazy/LazyVerticalGrid.composable#LazyVerticalGrid(androidx.glance.appwidget.lazy.GridCells,androidx.glance.GlanceModifier,androidx.glance.layout.Alignment.Horizontal,kotlin.Function1)( gridCells: https://developer.android.com/reference/kotlin/androidx/glance/appwidget/lazy/GridCells, modifier: https://developer.android.com/reference/kotlin/androidx/glance/GlanceModifier, horizontalAlignment: https://developer.android.com/reference/kotlin/androidx/glance/layout/Alignment.Horizontal, content: https://developer.android.com/reference/kotlin/androidx/glance/appwidget/lazy/LazyVerticalGridScope.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html )` The DSL implementation of a lazy grid layout. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/glance/ExperimentalGlanceApi @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/glance/appwidget/lazy/LazyVerticalGrid.composable#LazyVerticalGrid(androidx.glance.appwidget.lazy.GridCells,android.os.Bundle,androidx.glance.GlanceModifier,androidx.glance.layout.Alignment.Horizontal,kotlin.Function1)( gridCells: https://developer.android.com/reference/kotlin/androidx/glance/appwidget/lazy/GridCells, activityOptions: https://developer.android.com/reference/android/os/Bundle.html, modifier: https://developer.android.com/reference/kotlin/androidx/glance/GlanceModifier, horizontalAlignment: https://developer.android.com/reference/kotlin/androidx/glance/layout/Alignment.Horizontal, content: https://developer.android.com/reference/kotlin/androidx/glance/appwidget/lazy/LazyVerticalGridScope.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html )` The DSL implementation of a lazy grid layout. |

## Functions

### LazyVerticalGrid

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/lazy/LazyVerticalGrid.kt+function:LazyVerticalGrid)

```
@Composable
fun LazyVerticalGrid(
    gridCells: GridCells,
    modifier: GlanceModifier = GlanceModifier,
    horizontalAlignment: Alignment.Horizontal = Alignment.Start,
    content: LazyVerticalGridScope.() -> Unit
): Unit
```

The DSL implementation of a lazy grid layout. It composes only visible rows of the grid.

| Parameters |
|---|---|
| `gridCells: https://developer.android.com/reference/kotlin/androidx/glance/appwidget/lazy/GridCells` | the number of columns in the grid. |
| `modifier: https://developer.android.com/reference/kotlin/androidx/glance/GlanceModifier = GlanceModifier` | the modifier to apply to this layout |
| `horizontalAlignment: https://developer.android.com/reference/kotlin/androidx/glance/layout/Alignment.Horizontal = Alignment.Start` | the horizontal alignment applied to the items. |
| `content: https://developer.android.com/reference/kotlin/androidx/glance/appwidget/lazy/LazyVerticalGridScope.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | a block which describes the content. Inside this block you can use methods like `https://developer.android.com/reference/kotlin/androidx/glance/appwidget/lazy/LazyVerticalGridScope#item(kotlin.Long,kotlin.Function1)` to add a single item or `https://developer.android.com/reference/kotlin/androidx/glance/appwidget/lazy/LazyVerticalGridScope#items(kotlin.Int,kotlin.Function1,kotlin.Function2)` to add a list of items. If the item has more than one top-level child, they will be automatically wrapped in a Box. |

### LazyVerticalGrid

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/lazy/LazyVerticalGrid.kt+function:LazyVerticalGrid)

```
@ExperimentalGlanceApi
@Composable
fun LazyVerticalGrid(
    gridCells: GridCells,
    activityOptions: Bundle,
    modifier: GlanceModifier = GlanceModifier,
    horizontalAlignment: Alignment.Horizontal = Alignment.Start,
    content: LazyVerticalGridScope.() -> Unit
): Unit
```

The DSL implementation of a lazy grid layout. It composes only visible rows of the grid.

| Parameters |
|---|---|
| `gridCells: https://developer.android.com/reference/kotlin/androidx/glance/appwidget/lazy/GridCells` | the number of columns in the grid. |
| `activityOptions: https://developer.android.com/reference/android/os/Bundle.html` | Additional options built from an `https://developer.android.com/reference/android/app/ActivityOptions.html` to apply to an activity start. |
| `modifier: https://developer.android.com/reference/kotlin/androidx/glance/GlanceModifier = GlanceModifier` | the modifier to apply to this layout |
| `horizontalAlignment: https://developer.android.com/reference/kotlin/androidx/glance/layout/Alignment.Horizontal = Alignment.Start` | the horizontal alignment applied to the items. |
| `content: https://developer.android.com/reference/kotlin/androidx/glance/appwidget/lazy/LazyVerticalGridScope.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | a block which describes the content. Inside this block you can use methods like `https://developer.android.com/reference/kotlin/androidx/glance/appwidget/lazy/LazyVerticalGridScope#item(kotlin.Long,kotlin.Function1)` to add a single item or `https://developer.android.com/reference/kotlin/androidx/glance/appwidget/lazy/LazyVerticalGridScope#items(kotlin.Int,kotlin.Function1,kotlin.Function2)` to add a list of items. If the item has more than one top-level child, they will be automatically wrapped in a Box. |