DisposableEffectScope

class DisposableEffectScope

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

Constructors

DisposableEffectScope
Link copied to clipboard
common
fun DisposableEffectScope()

Functions

equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
onDispose
Link copied to clipboard
common
inline fun onDispose(crossinline onDisposeEffect: () -> Unit): DisposableEffectDisposable
Provide onDisposeEffect to the DisposableEffect to run when it leaves the composition or its subject changes.
toString
Link copied to clipboard
common
open fun toString(): String