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

ModifierLocalReadScope

public interface ModifierLocalReadScope

Known direct subclasses
ModifierLocalModifierNode

A androidx.compose.ui.Modifier.Node that is capable of consuming and providing ModifierLocal values.


This scope gives us access to modifier locals that are provided by other modifiers to the left of this modifier, or above this modifier in the layout tree.

See also
modifierLocalOf

Summary

Public methods

abstract @NonNull T

Read a ModifierLocal that was provided by other modifiers to the left of this modifier, or above this modifier in the layout tree.

Public methods

getCurrent

abstract @NonNullgetCurrent(@NonNull ModifierLocal<@NonNull T> receiver)

Read a ModifierLocal that was provided by other modifiers to the left of this modifier, or above this modifier in the layout tree.