Source set: Common
sealed interface LazyStaggeredGridItemInfo
Information about layout state of individual item in lazy staggered grid.
Properties
offset
Source set: Common
val offset: IntOffset
Relative offset from the start of the staggered grid.
index
Source set: Common
val index: Int
Index of the item.
lane
Source set: Common
val lane: Int
Column (for vertical staggered grids) or row (for horizontal staggered grids) that the item is in.
key
Source set: Common
val key: Any
Key of the item passed in LazyStaggeredGridScope.items
size
Source set: Common
val size: IntSize
Item size in pixels. If item contains multiple layouts, the size is calculated as a sum of their sizes.
contentType
Source set: Common
val contentType: Any?
The content type of the item which was passed to the item() or items() function.