consumeSerializableWithLifecycleEvent
Extension function for Fragment that consumes serializable objects of type T at a specific lifecycle event.
This function is similar to catchSerializableWithLifecycleEvent but automatically returns true after the catcher function is called, indicating that the object was successfully handled.
Parameters
The type of serializable object to consume
The unique identifier for this consumer, used to match the thrown object
The lifecycle event at which to consume the object, defaults to Lifecycle.Event.ON_START
A function that processes the caught object without needing to return a handling status
Extension function for Fragment that consumes serializable objects of type T at a specific lifecycle event.
This overload automatically uses the qualified name of type T as the key and is similar to catchSerializableWithLifecycleEvent but automatically returns true after the catcher function is called, indicating that the object was successfully handled.
Parameters
The type of serializable object to consume
The lifecycle event at which to consume the object, defaults to Lifecycle.Event.ON_START
A function that processes the caught object without needing to return a handling status