# LazyLayoutIntervalContent.Interval

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

  ```
  interface LazyLayoutIntervalContent.Interval
  ```

*** ** * ** ***

Common content of individual intervals in `item` DSL of lazy layouts.

Note: this class 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 |
|---|---|---|
| `open ((index: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)?` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/layout/LazyLayoutIntervalContent.Interval#key()` Returns item key based on a local index for the current interval. | Cmn |
| `open (index: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/layout/LazyLayoutIntervalContent.Interval#type()` Returns item type based on a local index for the current interval. | Cmn |

## Public properties

### key

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

```
open val key: ((index: Int) -> Any)?
```

Returns item key based on a local index for the current interval.

### type

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

```
open val type: (index: Int) -> Any?
```

Returns item type based on a local index for the current interval.