LazyStaggeredGridItemInfo

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

LazyStaggeredGridItemInfo

Interface

Common
sealed interface LazyStaggeredGridItemInfo

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

Properties

Common
val offset: IntOffset

Relative offset from the start of the staggered grid.

Common
val index: Int

Index of the item.

Common
val lane: Int

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

Common
val key: Any

Key of the item passed in LazyStaggeredGridScope.items

Common
val size: IntSize

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

Common
val contentType: Any?

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