LazyLayoutPinnableItem
Common
Component in Compose Foundation
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.8.0-alpha03")
}
Overloads
@Composable
fun LazyLayoutPinnableItem(
key: Any?,
index: Int,
pinnedItemList: LazyLayoutPinnedItemList,
content: @Composable () -> Unit
)
Parameters
name | description |
---|---|
key | key of the item inside the lazy layout |
index | index of the item inside the lazy layout |
pinnedItemList | container of currently pinned items |
content | inner content of this item |