androidx.compose.ui.modifier

ModifierLocalModifierNode

Interface · from org.jetbrains.compose.ui:ui:1.12.2

No hand-written docs yet.

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

interface ModifierLocalModifierNode : ModifierLocalReadScope, DelegatableNode

Is a

Properties

providedValues

val providedValues: ModifierLocalMap

The map of provided ModifierLocal <-> value pairs that this node is providing. This value must be overridden if you are going to provide any values. It should be overridden as a field-backed property initialized with values for all of the keys that it will ever possibly provide.

Functions

provide

fun <T> provide(key: ModifierLocal<T>, value: T)

This method will cause this node to provide a new value for key. This can be called at any time on the UI thread, but in order to use this API, providedValues must be implemented and key must be a key that was included in it.

Library docs

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

This is the androidx.compose.ui.Modifier.Node equivalent of the ModifierLocalConsumer and ModifierLocalProvider interfaces.