CatchSerializableLifecycleEffect
A Composable effect that catches serializable objects of type T at a specific lifecycle event.
This function uses Kotlinx Serialization to deserialize the caught object before passing it to the catcher function. The catcher function returns a boolean indicating whether the object was successfully handled.
Parameters
The type of serializable object to catch
The unique identifier for this effect, used to match the thrown object
The lifecycle event at which to catch the object, defaults to Lifecycle.Event.ON_START
A function that processes the caught object and returns true if it was handled successfully
A Composable effect that catches serializable objects of type T at a specific lifecycle event.
This overload automatically uses the qualified name of type T as the key. The catcher function returns a boolean indicating whether the object was successfully handled.
Parameters
The type of serializable object to catch
The lifecycle event at which to catch the object, defaults to Lifecycle.Event.ON_START
A function that processes the caught object and returns true if it was handled successfully