Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-15 UTC.
[null,null,["Last updated 2025-05-15 UTC."],[],[],null,["# CompositionLocalContext\n=======================\n\nArtifact: [androidx.compose.runtime:runtime](/jetpack/androidx/releases/compose-runtime) \n[View Source](https://cs.android.com/search?q=file:androidx/compose/runtime/CompositionLocal.kt+class:androidx.compose.runtime.CompositionLocalContext) \nAdded in [1.1.0](/jetpack/androidx/releases/compose-runtime#1.1.0)\nCommon/AllAndroid/JVMNative/C/iOSJavaScript\n - Cmn \n\n ```\n class CompositionLocalContext\n ```\n\n*** ** * ** ***\n\nStores [CompositionLocal](/reference/kotlin/androidx/compose/runtime/CompositionLocal)'s and their values.\n\nCan be obtained via [currentCompositionLocalContext](/reference/kotlin/androidx/compose/runtime/package-summary#currentCompositionLocalContext()) and passed to another composition via [CompositionLocalProvider](/reference/kotlin/androidx/compose/runtime/package-summary#CompositionLocalProvider(kotlin.Array,kotlin.Function0)).\n\n[CompositionLocalContext](/reference/kotlin/androidx/compose/runtime/CompositionLocalContext) is immutable and won't be changed after its obtaining."]]