{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

ModifierLocalConsumerKt

public final class ModifierLocalConsumerKt


Summary

Public methods

static final @NonNull Modifier

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

Public methods

modifierLocalConsumer

@ExperimentalComposeUiApi
public static final @NonNull Modifier modifierLocalConsumer(
    @NonNull Modifier receiver,
    @ExtensionFunctionType @NonNull Function1<@NonNull ModifierLocalReadScopeUnit> consumer
)

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