CatchBoomerangLifecycleEffect

@Composable
fun CatchBoomerangLifecycleEffect(key: String, lifecycleEvent: Lifecycle.Event = Lifecycle.Event.ON_START, catcher: BoomerangCatcher)(source)

A Composable effect that tries to catch a boomerang value from the BoomerangStore when a specific lifecycle event occurs. This effect is typically used to process data that was stored in the BoomerangStore when the UI becomes visible. Example usage

Parameters

key

The key to try to catch the value for

lifecycleEvent

The lifecycle event that triggers the catch attempt (default is ON_START)

catcher

The BoomerangCatcher to use for catching the value

Throws

if the lifecycleEvent is not ON_START or ON_RESUME