TransformingLazyColumnFirstLayoutItemProvider.ItemInfo

class TransformingLazyColumnFirstLayoutItemProvider.ItemInfo


Holds information about the first item to layout in TransformingLazyColumn.

During measurement, TransformingLazyColumn resolves this item to its index, measures it, and arranges all other items relative to its offset screen coordinate.

Summary

Public constructors

ItemInfo(
    index: Int,
    itemEdge: TransformingLazyColumnFirstLayoutItemProvider.ItemEdge,
    offset: Int,
    key: Any?
)

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

Int

The index of the item.

TransformingLazyColumnFirstLayoutItemProvider.ItemEdge

The logical edge of the item (Start or End) to which offset refers.

Any?

The stable key of the item, if one was provided.

Int

The offset (in pixels) of the item's edge defined by itemEdge.

Public constructors

ItemInfo

Added in 1.7.0-alpha05
ItemInfo(
    index: Int,
    itemEdge: TransformingLazyColumnFirstLayoutItemProvider.ItemEdge,
    offset: Int,
    key: Any? = null
)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

index

Added in 1.7.0-alpha05
val indexInt

The index of the item. When key is provided, this value acts as the last known index. The key is prioritized to identify the item in the presence of dataset changes. If key is null or not found, this index is used instead. The final index used for layout is coerced to stay within the list bounds.

itemEdge

val itemEdgeTransformingLazyColumnFirstLayoutItemProvider.ItemEdge

The logical edge of the item (Start or End) to which offset refers.

key

Added in 1.7.0-alpha05
val keyAny?

The stable key of the item, if one was provided. When specified, this key is prioritized over index to identify the item across content changes (such as item additions or removals), falling back to index only if the key is not found.

offset

Added in 1.7.0-alpha05
val offsetInt

The offset (in pixels) of the item's edge defined by itemEdge.