Class

DisposableEffectScope

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

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
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

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

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