A key to locate a service using the CompositionServices interface optionally implemented by implementations of Composition.
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,["# CompositionServiceKey\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/Composition.kt+class:androidx.compose.runtime.CompositionServiceKey) \nAdded in [1.6.0](/jetpack/androidx/releases/compose-runtime#1.6.0)\nCommon/AllAndroid/JVMNative/C/iOSJavaScript\n - Cmn \n\n ```\n interface CompositionServiceKey\u003cT : Any?\u003e\n ```\n\n*** ** * ** ***\n\nA key to locate a service using the [CompositionServices](/reference/kotlin/androidx/compose/runtime/CompositionServices) interface optionally implemented by implementations of [Composition](/reference/kotlin/androidx/compose/runtime/Composition)."]]