# LazyLayoutPinnableItem

Common/AllAndroid/JVM

## Functions summary

|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/layout/LazyLayoutPinnableItem.composable#LazyLayoutPinnableItem(kotlin.Any,kotlin.Int,androidx.compose.foundation.lazy.layout.LazyLayoutPinnedItemList,kotlin.Function0)( key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?, index: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, pinnedItemList: https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/layout/LazyLayoutPinnedItemList, content: @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable () -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html )` Wrapper supporting `https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/PinnableContainer` in lazy layout items. | Cmn |

## Functions

### LazyLayoutPinnableItem

Cmn Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/lazy/layout/LazyLayoutPinnableItem.kt+function:LazyLayoutPinnableItem) Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.4.0)

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

Wrapper supporting `https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/PinnableContainer` in lazy layout items. Each pinned item is considered important to keep alive even if it would be discarded otherwise.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?` | key of the item inside the lazy layout |
| `index: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | index of the item inside the lazy layout |
| `pinnedItemList: https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/layout/LazyLayoutPinnedItemList` | container of currently pinned items |
| `content: @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable () -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | inner content of this item Note: this function is a part of `https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/layout/LazyLayout.composable#LazyLayout(kotlin.Function0,androidx.compose.ui.Modifier,androidx.compose.foundation.lazy.layout.LazyLayoutPrefetchState,androidx.compose.foundation.lazy.layout.LazyLayoutMeasurePolicy)` harness that allows for building custom lazy layouts. LazyLayout and all corresponding APIs are still under development and are subject to change. |