# LazyStaggeredGridLayoutInfo

Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/lazy/staggeredgrid/LazyStaggeredGridMeasureResult.kt+class:androidx.compose.foundation.lazy.staggeredgrid.LazyStaggeredGridLayoutInfo) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.3.0) Common/All
- Cmn

  ```
  sealed interface LazyStaggeredGridLayoutInfo
  ```

*** ** * ** ***

Information about layout state of lazy staggered grids. Can be retrieved from `https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/staggeredgrid/LazyStaggeredGridState#layoutInfo()`.

## Summary

| ### Public properties |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/staggeredgrid/LazyStaggeredGridLayoutInfo#afterContentPadding()` Content padding in pixels applied after the items in scroll direction. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/staggeredgrid/LazyStaggeredGridLayoutInfo#beforeContentPadding()` Content padding in pixels applied before the items in scroll direction. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/staggeredgrid/LazyStaggeredGridLayoutInfo#mainAxisItemSpacing()` The spacing between items in scroll direction. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/gestures/Orientation` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/staggeredgrid/LazyStaggeredGridLayoutInfo#orientation()` Orientation of the staggered grid. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/staggeredgrid/LazyStaggeredGridLayoutInfo#reverseLayout()` Whether the direction of scrolling and layout is reversed. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/staggeredgrid/LazyStaggeredGridLayoutInfo#totalItemsCount()` The total count of items passed to staggered grid. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/staggeredgrid/LazyStaggeredGridLayoutInfo#viewportEndOffset()` The end offset of the layout's viewport in pixels. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/IntSize` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/staggeredgrid/LazyStaggeredGridLayoutInfo#viewportSize()` Layout viewport (content + content padding) size in pixels. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/staggeredgrid/LazyStaggeredGridLayoutInfo#viewportStartOffset()` The start offset of the layout's viewport in pixels. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/staggeredgrid/LazyStaggeredGridItemInfo>` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/staggeredgrid/LazyStaggeredGridLayoutInfo#visibleItemsInfo()` The list of `https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/staggeredgrid/LazyStaggeredGridItemInfo` per each visible item ordered by index. | Cmn |

## Public properties

### afterContentPadding

Cmn Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.3.0)

```
val afterContentPadding: Int
```

Content padding in pixels applied after the items in scroll direction.

### beforeContentPadding

Cmn Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.3.0)

```
val beforeContentPadding: Int
```

Content padding in pixels applied before the items in scroll direction.

### mainAxisItemSpacing

Cmn Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.4.0)

```
val mainAxisItemSpacing: Int
```

The spacing between items in scroll direction.

### orientation

Cmn Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.4.0)

```
val orientation: Orientation
```

Orientation of the staggered grid.

### reverseLayout

Cmn Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.12.0)

```
val reverseLayout: Boolean
```

Whether the direction of scrolling and layout is reversed.

### totalItemsCount

Cmn Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.3.0)

```
val totalItemsCount: Int
```

The total count of items passed to staggered grid.

### viewportEndOffset

Cmn Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.3.0)

```
val viewportEndOffset: Int
```

The end offset of the layout's viewport in pixels. You can think of it as a maximum offset which would be visible. It is the size of the lazy grid layout minus `https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/staggeredgrid/LazyStaggeredGridLayoutInfo#beforeContentPadding()`.

You can use it to understand what items from `https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/staggeredgrid/LazyStaggeredGridLayoutInfo#visibleItemsInfo()` are fully visible.

### viewportSize

Cmn Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.3.0)

```
val viewportSize: IntSize
```

Layout viewport (content + content padding) size in pixels.

### viewportStartOffset

Cmn Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.3.0)

```
val viewportStartOffset: Int
```

The start offset of the layout's viewport in pixels. You can think of it as a minimum offset which would be visible. Can be negative if non-zero `https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/staggeredgrid/LazyStaggeredGridLayoutInfo#beforeContentPadding()` was applied as the content displayed in the content padding area is still visible.

You can use it to understand what items from `https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/staggeredgrid/LazyStaggeredGridLayoutInfo#visibleItemsInfo()` are fully visible.

### visibleItemsInfo

Cmn Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.3.0)

```
val visibleItemsInfo: List<LazyStaggeredGridItemInfo>
```

The list of `https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/staggeredgrid/LazyStaggeredGridItemInfo` per each visible item ordered by index.