Class

DisposableEffectScope

Receiver scope for DisposableEffect that offers the onDispose clause that should be the last statement in any call to DisposableEffect.

Source set: Common
public class DisposableEffectScope

Receiver scope for DisposableEffect that offers the onDispose clause that should be the last statement in any call to DisposableEffect.

Functions

onDispose

Source set: Common
public inline fun onDispose(crossinline onDisposeEffect: () -> Unit): DisposableEffectResult

Provide onDisposeEffect to the DisposableEffect to run when it leaves the composition or its key changes.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: