LazyColumnVisibleItemInfo

sealed interface LazyColumnVisibleItemInfo


Represents an item that is visible in the LazyColumn component.

Summary

Public properties

Any?

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

Int

The height of the item after applying any height changes.

Int

The index of the item in the underlying data source.

Any

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

Int

The offset of the item from the start of the visible area.

LazyColumnItemScrollProgress

The scroll progress of the item, indicating its position within the visible area.

Public properties

contentType

Added in 1.5.0-alpha03
val contentTypeAny?

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

height

Added in 1.5.0-alpha03
val heightInt

The height of the item after applying any height changes.

index

Added in 1.5.0-alpha03
val indexInt

The index of the item in the underlying data source.

key

Added in 1.5.0-alpha03
val keyAny

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

offset

Added in 1.5.0-alpha03
val offsetInt

The offset of the item from the start of the visible area.

scrollProgress

Added in 1.5.0-alpha03
val scrollProgressLazyColumnItemScrollProgress

The scroll progress of the item, indicating its position within the visible area.