---
title: "LazyListDefaults"
description: "Contains the default values used by [LazyColumn] and [LazyRow]."
type: "object"
lastmod: "2026-09-24"
---
## API Reference

> Source set: Common

```kotlin
public object LazyListDefaults
```

Contains the default values used by [LazyColumn](/jetpack-compose/androidx.compose.foundation/foundation/composable-functions/LazyColumn/api) and [LazyRow](/jetpack-compose/androidx.compose.foundation/foundation/composable-functions/LazyRow/api).

## Functions

### cacheWindow

> Source set: Common

```kotlin
@Composable
    public fun cacheWindow(state: LazyListState): LazyLayoutCacheWindow
```

Creates and remembers the default [LazyLayoutCacheWindow](/jetpack-compose/androidx.compose.foundation/foundation/functions/LazyLayoutCacheWindow/api) for [LazyColumn](/jetpack-compose/androidx.compose.foundation/foundation/composable-functions/LazyColumn/api) and [LazyRow](/jetpack-compose/androidx.compose.foundation/foundation/composable-functions/LazyRow/api).
- Prefetches items ahead in the scroll direction based on the average size of visible items
from [state](/jetpack-compose/androidx.compose.foundation/foundation/functions/state/api), clamped between 10% and 50% of the viewport.
- Does not retain items behind the viewport.
- Does not cache while the user is not scrolling.

#### Parameters

| | |
| --- | --- |
| state | the [LazyListState](/jetpack-compose/androidx.compose.foundation/foundation/classes/LazyListState) used to calculate the average visible item size |

#### Return

the default [LazyLayoutCacheWindow](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/LazyLayoutCacheWindow)
