# LazyLayoutPrefetchState.PrefetchResultScope

# LazyLayoutPrefetchState.PrefetchResultScope

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

  ```
  sealed interface LazyLayoutPrefetchState.PrefetchResultScope
  ```

*** ** * ** ***

A scope for[schedulePrecompositionAndPremeasure](https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/layout/LazyLayoutPrefetchState#schedulePrecompositionAndPremeasure(kotlin.Int,androidx.compose.ui.unit.Constraints,kotlin.Function1))callbacks. The scope provides additional information about a prefetched item.

## Summary

|                                    ### Public functions                                    |
|--------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| [IntSize](https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/IntSize) | [getSize](https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/layout/LazyLayoutPrefetchState.PrefetchResultScope#getSize(kotlin.Int))`(placeableIndex: @`[IntRange](https://developer.android.com/reference/kotlin/androidx/annotation/IntRange)`(from = 0) `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Retrieves the latest measured size for a given placeable[placeableIndex](https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/layout/LazyLayoutPrefetchState.PrefetchResultScope#getSize(kotlin.Int))in pixels. | Cmn |

|                            ### Public properties                            |
|-----------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [index](https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/layout/LazyLayoutPrefetchState.PrefetchResultScope#index()) The index of the prefetched item.                                     | Cmn |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [placeablesCount](https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/layout/LazyLayoutPrefetchState.PrefetchResultScope#placeablesCount()) The amount of placeables composed into this item. | Cmn |

## Public functions

### getSize

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

```
fun getSize(placeableIndex: @IntRange(from = 0) Int): IntSize
```

Retrieves the latest measured size for a given placeable[placeableIndex](https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/layout/LazyLayoutPrefetchState.PrefetchResultScope#getSize(kotlin.Int))in pixels.

## Public properties

### index

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

```
val index: Int
```

The index of the prefetched item.  

### placeablesCount

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

```
val placeablesCount: Int
```

The amount of placeables composed into this item.