# LazyLayoutMeasurePolicy

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

  ```
  fun interface LazyLayoutMeasurePolicy
  ```

*** ** * ** ***

## Summary

| ### Public functions |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/MeasureResult` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/layout/LazyLayoutMeasureScope.https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/layout/LazyLayoutMeasurePolicy#(androidx.compose.foundation.lazy.layout.LazyLayoutMeasureScope).measure(androidx.compose.ui.unit.Constraints)(constraints: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Constraints)` The function that defines the measurement and layout. | Cmn |

## Public functions

### LazyLayoutMeasureScope.measure

Cmn 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/LazyLayoutMeasurePolicy.kt+function:measure) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.10.0)

```
fun LazyLayoutMeasureScope.measure(constraints: Constraints): MeasureResult
```

The function that defines the measurement and layout. For each item in this `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)` we should call `https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/layout/LazyLayoutMeasureScope#compose(kotlin.Int)` and then call `https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/Measurable#measure(androidx.compose.ui.unit.Constraints)` with the child `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Constraints` to be used.

| Parameters |
|---|---|
| `constraints: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Constraints` | The constraints used to measure this Lazy Layout. |