# ScalingLazyListLayoutInfo

Artifact: [androidx.wear.compose:compose-material](https://developer.android.com/jetpack/androidx/releases/wear-compose) [View Source](https://cs.android.com/search?q=file:androidx/wear/compose/material/ScalingLazyListLayoutInfo.kt+class:androidx.wear.compose.material.ScalingLazyListLayoutInfo) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.0.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.2.0)


```
sealed interface ScalingLazyListLayoutInfo
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This interface is deprecated.**   
> Was moved to androidx.wear.compose.foundation.lazy package. Please use it instead

Contains useful information about the currently displayed layout state of `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyColumn.composable#ScalingLazyColumn(androidx.compose.ui.Modifier,androidx.wear.compose.material.ScalingLazyListState,androidx.compose.foundation.layout.PaddingValues,kotlin.Boolean,androidx.compose.foundation.layout.Arrangement.Vertical,androidx.compose.ui.Alignment.Horizontal,androidx.compose.foundation.gestures.FlingBehavior,kotlin.Boolean,androidx.wear.compose.material.ScalingParams,androidx.wear.compose.material.ScalingLazyListAnchorType,androidx.wear.compose.material.AutoCenteringParams,kotlin.Function1)`. For example you can get the list of currently displayed items.

Use `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyListState#layoutInfo()` to retrieve this

## Summary

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyListLayoutInfo#afterAutoCenteringPadding()` **This property is deprecated.** Was moved to androidx.wear.compose.foundation.lazy package. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyListLayoutInfo#afterContentPadding()` **This property is deprecated.** Was moved to androidx.wear.compose.foundation.lazy package. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyListLayoutInfo#beforeAutoCenteringPadding()` **This property is deprecated.** Was moved to androidx.wear.compose.foundation.lazy package. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyListLayoutInfo#beforeContentPadding()` **This property is deprecated.** Was moved to androidx.wear.compose.foundation.lazy package. |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/gestures/Orientation` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyListLayoutInfo#orientation()` **This property is deprecated.** Was moved to androidx.wear.compose.foundation.lazy package. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyListLayoutInfo#reverseLayout()` **This property is deprecated.** Was moved to androidx.wear.compose.foundation.lazy package. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyListLayoutInfo#totalItemsCount()` **This property is deprecated.** Was moved to androidx.wear.compose.foundation.lazy package. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyListLayoutInfo#viewportEndOffset()` **This property is deprecated.** Was moved to androidx.wear.compose.foundation.lazy package. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/IntSize` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyListLayoutInfo#viewportSize()` **This property is deprecated.** Was moved to androidx.wear.compose.foundation.lazy package. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyListLayoutInfo#viewportStartOffset()` **This property is deprecated.** Was moved to androidx.wear.compose.foundation.lazy package. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyListItemInfo>` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyListLayoutInfo#visibleItemsInfo()` **This property is deprecated.** Was moved to androidx.wear.compose.foundation.lazy package. |

## Public properties

### afterAutoCenteringPadding

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.0.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.2.0)

```
val afterAutoCenteringPadding: Int
```

> [!CAUTION]
> **This property is deprecated.**   
> Was moved to androidx.wear.compose.foundation.lazy package. Please use it instead

The auto centering padding in pixels applied after the last item in the direction of scrolling. For example it is a bottom auto centering padding for ScalingLazyColumn with reverseLayout set to false.

### afterContentPadding

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.0.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.2.0)

```
val afterContentPadding: Int
```

> [!CAUTION]
> **This property is deprecated.**   
> Was moved to androidx.wear.compose.foundation.lazy package. Please use it instead

The content padding in pixels applied after the last item in the direction of scrolling. For example it is a bottom content padding for ScalingLazyColumn with reverseLayout set to false.

### beforeAutoCenteringPadding

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.0.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.2.0)

```
val beforeAutoCenteringPadding: Int
```

> [!CAUTION]
> **This property is deprecated.**   
> Was moved to androidx.wear.compose.foundation.lazy package. Please use it instead

The auto centering padding in pixels applied before the first item in the direction of scrolling. For example it is a top auto centering padding for ScalingLazyColumn with reverseLayout set to false.

### beforeContentPadding

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.0.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.2.0)

```
val beforeContentPadding: Int
```

> [!CAUTION]
> **This property is deprecated.**   
> Was moved to androidx.wear.compose.foundation.lazy package. Please use it instead

The content padding in pixels applied before the first item in the direction of scrolling. For example it is a top content padding for ScalingLazyColumn with reverseLayout set to false.

### orientation

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.0.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.2.0)

```
val orientation: Orientation
```

> [!CAUTION]
> **This property is deprecated.**   
> Was moved to androidx.wear.compose.foundation.lazy package. Please use it instead

The orientation of the scaling lazy list.

### reverseLayout

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.0.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.2.0)

```
val reverseLayout: Boolean
```

> [!CAUTION]
> **This property is deprecated.**   
> Was moved to androidx.wear.compose.foundation.lazy package. Please use it instead

True if the direction of scrolling and layout is reversed.

### totalItemsCount

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.0.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.2.0)

```
val totalItemsCount: Int
```

> [!CAUTION]
> **This property is deprecated.**   
> Was moved to androidx.wear.compose.foundation.lazy package. Please use it instead

The total count of items passed to `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyColumn.composable#ScalingLazyColumn(androidx.compose.ui.Modifier,androidx.wear.compose.material.ScalingLazyListState,androidx.compose.foundation.layout.PaddingValues,kotlin.Boolean,androidx.compose.foundation.layout.Arrangement.Vertical,androidx.compose.ui.Alignment.Horizontal,androidx.compose.foundation.gestures.FlingBehavior,kotlin.Boolean,androidx.wear.compose.material.ScalingParams,androidx.wear.compose.material.ScalingLazyListAnchorType,androidx.wear.compose.material.AutoCenteringParams,kotlin.Function1)`.

### viewportEndOffset

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.0.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.2.0)

```
val viewportEndOffset: Int
```

> [!CAUTION]
> **This property is deprecated.**   
> Was moved to androidx.wear.compose.foundation.lazy package. Please use it instead

The end offset of the layout's viewport in pixels. You can think of it as a maximum offset which would be visible. It is the size of the scaling lazy list layout minus `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyListLayoutInfo#beforeContentPadding()`.

You can use it to understand what items from `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyListLayoutInfo#visibleItemsInfo()` are fully visible.

### viewportSize

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.0.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.2.0)

```
val viewportSize: IntSize
```

> [!CAUTION]
> **This property is deprecated.**   
> Was moved to androidx.wear.compose.foundation.lazy package. Please use it instead

The size of the viewport in pixels. It is the scaling lazy list layout size including all the content paddings.

### viewportStartOffset

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.0.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.2.0)

```
val viewportStartOffset: Int
```

> [!CAUTION]
> **This property is deprecated.**   
> Was moved to androidx.wear.compose.foundation.lazy package. Please use it instead

The start offset of the layout's viewport in pixels. You can think of it as a minimum offset which would be visible. Usually it is 0, but it can be negative if non-zero `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyListLayoutInfo#beforeContentPadding()` was applied as the content displayed in the content padding area is still visible.

You can use it to understand what items from `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyListLayoutInfo#visibleItemsInfo()` are fully visible.

### visibleItemsInfo

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.0.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.2.0)

```
val visibleItemsInfo: List<ScalingLazyListItemInfo>
```

> [!CAUTION]
> **This property is deprecated.**   
> Was moved to androidx.wear.compose.foundation.lazy package. Please use it instead

The list of `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyListItemInfo` representing all the currently visible items.