Interface

LazyLayoutPinnedItemList.PinnedItem

Item pinned in a lazy layout.

Source set: Common
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

Source set: Common
public val key: Any?

Key of the pinned item.

index

Source set: Common
public val index: Int

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

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: