TvLazyListItemInfo

sealed interface TvLazyListItemInfo


Contains useful information about an individual item in lazy lists like TvLazyColumn or TvLazyRow.

Summary

Public properties

Any?

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

Int

The index of the item in the list.

Any

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

Int

The main axis offset of the item in pixels.

Int

The main axis size of the item in pixels.

Public properties

contentType

Added in 1.0.0-alpha11
Deprecated in 1.0.0-alpha11
val contentTypeAny?

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

index

Added in 1.0.0-alpha11
Deprecated in 1.0.0-alpha11
val indexInt

The index of the item in the list.

key

Added in 1.0.0-alpha11
Deprecated in 1.0.0-alpha11
val keyAny

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

offset

Added in 1.0.0-alpha11
Deprecated in 1.0.0-alpha11
val offsetInt

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

size

Added in 1.0.0-alpha11
Deprecated in 1.0.0-alpha11
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.