Interface

LazyListItemInfo

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

Source set: Common

Added in 1.11.0-rc01

interface LazyListItemInfo

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

Properties

index

Source set: Common

Added in 1.11.0-rc01

val index: Int

The index of the item in the list.

key

Source set: Common

Added in 1.11.0-rc01

val key: Any

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

offset

Source set: Common

Added in 1.11.0-rc01

val offset: Int

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

size

Source set: Common

Added in 1.11.0-rc01

val size: Int

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.

contentType

Source set: Common

Added in 1.11.0-rc01

val contentType: Any?

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