LazyListItemInfo


Contains useful information about an individual item in lazy lists like LazyColumn or LazyRow.

Summary

Public properties

open Any?

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

Cmn
Int

The index of the item in the list.

Cmn
Any

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

Cmn
Int

The main axis offset of the item in pixels.

Cmn
Int

The main axis size of the item in pixels.

Cmn

Public properties

contentType

open val contentTypeAny?

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

index

val indexInt

The index of the item in the list.

key

val keyAny

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

offset

val offsetInt

The main axis offset of the item in pixels. It is relative to the start of the lazy list container.

size

val sizeInt

The main axis size of the item in pixels. Note that if you emit multiple layouts in the composable slot for the item then this size will be calculated as the sum of their sizes.