# LazyStaggeredGridItemInfo

# LazyStaggeredGridItemInfo

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.LazyStaggeredGridItemInfo)  
Added in[1.3.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.3.0)
Common/All
  - Cmn  

  ```
  sealed interface LazyStaggeredGridItemInfo
  ```

*** ** * ** ***

Information about layout state of individual item in lazy staggered grid.  

|                                                                         See also                                                                         |
|----------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [LazyStaggeredGridLayoutInfo](https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/staggeredgrid/LazyStaggeredGridLayoutInfo) |   |

## Summary

|                                     ### Public properties                                      |
|------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| [Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?`                 | [contentType](https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/staggeredgrid/LazyStaggeredGridItemInfo#contentType()) The content type of the item which was passed to the item() or items() function.                                                                                                                                                                    | Cmn |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                    | [index](https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/staggeredgrid/LazyStaggeredGridItemInfo#index()) Index of the item.                                                                                                                                                                                                                                              | Cmn |
| [Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)                    | [key](https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/staggeredgrid/LazyStaggeredGridItemInfo#key()) Key of the item passed in[LazyStaggeredGridScope.items](https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/staggeredgrid/LazyStaggeredGridScope#items(kotlin.Int,kotlin.Function1,kotlin.Function1,kotlin.Function1,kotlin.Function2)) | Cmn |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                    | [lane](https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/staggeredgrid/LazyStaggeredGridItemInfo#lane()) Column (for vertical staggered grids) or row (for horizontal staggered grids) that the item is in.                                                                                                                                                                | Cmn |
| [IntOffset](https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/IntOffset) | [offset](https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/staggeredgrid/LazyStaggeredGridItemInfo#offset()) Relative offset from the start of the staggered grid.                                                                                                                                                                                                         | Cmn |
| [IntSize](https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/IntSize)     | [size](https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/staggeredgrid/LazyStaggeredGridItemInfo#size()) Item size in pixels.                                                                                                                                                                                                                                              | Cmn |

## Public properties

### contentType

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

```
val contentType: Any?
```

The content type of the item which was passed to the item() or items() function.  

### index

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

```
val index: Int
```

Index of the item.  

### key

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

```
val key: Any
```

Key of the item passed in[LazyStaggeredGridScope.items](https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/staggeredgrid/LazyStaggeredGridScope#items(kotlin.Int,kotlin.Function1,kotlin.Function1,kotlin.Function1,kotlin.Function2))  

### lane

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

```
val lane: Int
```

Column (for vertical staggered grids) or row (for horizontal staggered grids) that the item is in.  

### offset

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

```
val offset: IntOffset
```

Relative offset from the start of the staggered grid.  

### size

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

```
val size: IntSize
```

Item size in pixels. If item contains multiple layouts, the size is calculated as a sum of their sizes.