LazyStaggeredGridItemInfo


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

Summary

Public properties

Any?

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

Cmn
Int

Index of the item.

Cmn
Any

Key of the item passed in LazyStaggeredGridScope.items

Cmn
Int

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

Cmn
IntOffset

Relative offset from the start of the staggered grid.

Cmn
IntSize

Item size in pixels.

Cmn

Public properties

contentType

val contentTypeAny?

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

index

val indexInt

Index of the item.

key

val keyAny

Key of the item passed in LazyStaggeredGridScope.items

lane

val laneInt

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

offset

val offsetIntOffset

Relative offset from the start of the staggered grid.

size

val sizeIntSize

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