# LazyLayoutPinnedItemList.PinnedItem

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+class:androidx.compose.foundation.lazy.layout.LazyLayoutPinnedItemList.PinnedItem) Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.4.0) Common/AllAndroid/JVM
- Cmn

  ```
  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.

Note: this interface 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.

## Summary

| ### Public properties |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/layout/LazyLayoutPinnedItemList.PinnedItem#index()` Last known index of the pinned item. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/layout/LazyLayoutPinnedItemList.PinnedItem#key()` Key of the pinned item. | Cmn |

## Public properties

### index

Cmn Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.4.0)

```
val index: Int
```

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

### key

Cmn Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.4.0)

```
val key: Any?
```

Key of the pinned item.