New Compose Multiplatform components arrived on Composables UICheck it out →

Component in Compose Foundation

LazyLayoutPinnableItem

Common

Wrapper supporting [PinnableContainer] in lazy layout items. Each pinned item is considered important to keep alive even if it would be discarded otherwise.

Last updated:

Installation

dependencies {
   implementation("androidx.compose.foundation:foundation:1.7.0-beta04")
}

Overloads

@Composable
@ExperimentalFoundationApi
fun LazyLayoutPinnableItem(
    key: Any?,
    index: Int,
    pinnedItemList: LazyLayoutPinnedItemList,
    content: @Composable () -> Unit
)

Parameters

namedescription
keykey of the item inside the lazy layout
indexindex of the item inside the lazy layout
pinnedItemListcontainer of currently pinned items
contentinner content of this item