public class LazyLayoutPinnedItemList private constructor(private val items: MutableList<PinnedItem>) :
List<LazyLayoutPinnedItemList.PinnedItem>
Read-only list of pinned items in a lazy layout. The items are modified internally by the PinnableContainer consumers, for example if something inside item content is focused.
Note: this class is a part of LazyLayout harness that allows for building custom lazy layouts. LazyLayout and all corresponding APIs are still under development and are subject to change.
Members
PinnedItem
public sealed interface PinnedItem
Item pinned in a lazy layout. Pinned item should be always measured and laid out, even if the item is beyond the boundaries of the layout.
Note: this interface is a part of LazyLayout harness that allows for building custom lazy layouts. LazyLayout and all corresponding APIs are still under development and are subject to change.
Properties
key
public val key: Any?
Key of the pinned item.
index
public val index: Int
Last known index of the pinned item. Note: it is possible for index to change during lifetime of the object.