<div class='type'>Interface</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>



```kotlin
public interface CompositionServices
```


Allows finding composition services from the runtime. The services requested through this
interface are internal to the runtime and cannot be provided directly.

The `CompositionServices` interface is used by the runtime to provide optional and/or
experimental services through public extension functions.

Implementation of `Composition` that delegate to another `Composition` instance should implement
this interface and delegate calls to `getCompositionService` to the original `Composition`.


## Functions



<h2 id="getcompositionservice-key">getCompositionService</h2>

```kotlin
public fun <T> getCompositionService(key: CompositionServiceKey<T>): T?
```


Find a service of class `T`.