RetainedEffectResult


The return type of a built RetainedEffect. This is created in the RetainedEffectScope.onRetire clause and tracks the onRetiredEffect callback for internal usage.

Summary

Public functions

Unit

Called when the RetainedEffect is retired from composition.

Cmn

Public functions

retire

fun retire(): Unit

Called when the RetainedEffect is retired from composition. This should call the onRetiredEffect provided to RetainedEffectScope.onRetire.