# ObserverHandle

Artifact: [androidx.compose.runtime:runtime](https://developer.android.com/jetpack/androidx/releases/compose-runtime) [View Source](https://cs.android.com/search?q=file:androidx/compose/runtime/snapshots/Snapshot.kt+class:androidx.compose.runtime.snapshots.ObserverHandle) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-runtime#1.0.0) Common/AllAndroid/JVMNative/C/iOSJavaScript
- Cmn

  ```
  fun interface ObserverHandle
  ```

*** ** * ** ***

The type returned by observer registration methods that unregisters the observer when it is disposed.

## Summary

| ### Public functions |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/runtime/snapshots/ObserverHandle#dispose()()` Dispose the observer causing it to be unregistered from the snapshot system. | Cmn |

## Public functions

### dispose

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-runtime#1.0.0)

```
fun dispose(): Unit
```

Dispose the observer causing it to be unregistered from the snapshot system.