Interface

CompositionLocalConsumerSubspaceModifierNode

Implementing this interface allows your SubspaceModifier.Node subclass to read CompositionLocals via the currentValueOf function.

Source set: Android
public interface CompositionLocalConsumerSubspaceModifierNode : DelegatableSubspaceNode

Implementing this interface allows your SubspaceModifier.Node subclass to read CompositionLocals via the currentValueOf function. The values of each CompositionLocal will be resolved based on the context of the layout node that the modifier is attached to, meaning that the modifier will see the same values of each CompositionLocal as its corresponding layout node.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: