---
title: "CompositionInstance"
description: "[CompositionInstance] provides information about the composition of which a [CompositionData] is
part."
type: "interface"
---

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


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

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



```kotlin
public interface CompositionInstance
```


`CompositionInstance` provides information about the composition of which a `CompositionData` is
part.


## Functions

```kotlin
public fun findContextGroup(): CompositionGroup?
```


Find the `CompositionGroup` that contains the `CompositionContext` created by a call to
`rememberCompositionContext` that is the parent context for this composition. If this is the
root of the composition (e.g. `parent` is `null`) then this method also returns `null`.



