---
title: "CompositionObserverHandle"
description: "The handle returned by [Composition.setObserver] and [Recomposer.observe]. Calling [dispose] will
prevent further composition observation events from being sent to the registered observer."
type: "interface"
---

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


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

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



```kotlin
@ExperimentalComposeRuntimeApi
public interface CompositionObserverHandle
```


The handle returned by `Composition.setObserver` and `Recomposer.observe`. Calling `dispose` will
prevent further composition observation events from being sent to the registered observer.


## Functions

```kotlin
public fun dispose()
```


Unregister the observer.



