{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

LazyLayoutPinnedItemList.PinnedItem

@ExperimentalFoundationApi
public sealed interface LazyLayoutPinnedItemList.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.

Summary

Public methods

abstract int

Last known index of the pinned item.

abstract Object

Key of the pinned item.

Public methods

getIndex

abstract int getIndex()

Last known index of the pinned item. Note: it is possible for index to change during lifetime of the object.

getKey

abstract Object getKey()

Key of the pinned item.