RetainedEffectScope


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

Summary

Public constructors

Cmn

Public functions

inline RetainedEffectResult
onRetire(crossinline onRetiredEffect: () -> Unit)

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

Cmn

Public constructors

RetainedEffectScope

RetainedEffectScope()

Public functions

onRetire

inline fun onRetire(crossinline onRetiredEffect: () -> Unit): RetainedEffectResult

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