# ScalingLazyListItemInfo

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/ScalingLazyListItemInfo.kt+class:androidx.wear.compose.material.ScalingLazyListItemInfo) 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 ScalingLazyListItemInfo
```

<br />

*** ** * ** ***

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

Contains useful information about an individual item in a `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)`.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyListLayoutInfo` |   |

## Summary

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyListItemInfo#alpha()` **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/ScalingLazyListItemInfo#index()` **This property is deprecated.** Was moved to androidx.wear.compose.foundation.lazy package. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyListItemInfo#key()` **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/ScalingLazyListItemInfo#offset()` **This property is deprecated.** Was moved to androidx.wear.compose.foundation.lazy package. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyListItemInfo#scale()` **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/ScalingLazyListItemInfo#size()` **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/ScalingLazyListItemInfo#unadjustedOffset()` **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/ScalingLazyListItemInfo#unadjustedSize()` **This property is deprecated.** Was moved to androidx.wear.compose.foundation.lazy package. |

## Public properties

### alpha

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 alpha: Float
```

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

How much alpha has been applied to the item, between 0 and 1

### index

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 index: Int
```

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

The index of the item in the list.

### key

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 key: Any
```

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

The key of the item which was passed to the item() or items() function.

### offset

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 offset: Int
```

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

The main axis offset of the item after adjustment for scaling of the items in the viewport.

The offset is relative to the center-line of the viewport of the lazy list container and takes the `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyListAnchorType` into account.

For `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyListAnchorType#ItemCenter()` the offset is from the center of the list item to the center-line of the viewport.

For `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyListAnchorType#ItemStart()` it is the offset between the start (edge) of the item and the center-line of the viewport, for normal layout this will be the top edge of the item, for reverseLayout it will be the bottom edge.

A positive value indicates that the item's anchor point is below the viewport center-line, a negative value indicates that the item anchor point is above the viewport center-line.

### scale

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 scale: Float
```

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

How much scaling has been applied to the item, between 0 and 1

### size

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 size: Int
```

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

The scaled/adjusted main axis size of the item. Note that if you emit multiple layouts in the composable slot for the item then this size will be calculated as the sum of their sizes.

### unadjustedOffset

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 unadjustedOffset: Int
```

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

The main axis offset of the item before adjustment for scaling of the items in the viewport.

The offset is relative to the center-line of the viewport of the lazy list container and takes the `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyListAnchorType` into account.

For `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyListAnchorType#ItemCenter()` the offset is from the center of the list item to the center-line of the viewport.

For `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyListAnchorType#ItemStart()` it is the offset between the start (edge) of the item and the center-line of the viewport, for normal layout this will be the top edge of the item, for reverseLayout it will be the bottom edge.

### unadjustedSize

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 unadjustedSize: Int
```

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

The original (before scaling) size of the list item