---
title: "ModifierLocalConsumer"
description: "A Modifier that can be used to consume [ModifierLocal]s that were provided by other modifiers to
the left of this modifier, or above this modifier in the layout tree."
type: "interface"
---

<div class='type'>Interface</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>



```kotlin
@JvmDefaultWithCompatibility
interface ModifierLocalConsumer : Modifier.Element
```


A Modifier that can be used to consume `ModifierLocal`s that were provided by other modifiers to
the left of this modifier, or above this modifier in the layout tree.


## Functions

```kotlin
fun onModifierLocalsUpdated(scope: ModifierLocalReadScope)
```


This function is called whenever one of the consumed values has changed. This could be called
in response to the modifier being added, removed or re-ordered.



