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

CompositionLocalContext

public final class CompositionLocalContext


Stores CompositionLocal's and their values.

Can be obtained via currentCompositionLocalContext and passed to another composition via CompositionLocalProvider.

CompositionLocalContext is immutable and won't be changed after its obtaining.