DefaultBoomerangStore
Default implementation of the BoomerangStore interface. Uses a private mutable map to store key-value pairs.
Functions
Restores the state of the store from a Boomerang object. Typically used to restore state after configuration changes.
Stores an event notification with the given key. Creates a Boomerang object with a single string entry using the EVENT_KEY constant and the provided key, then stores it in the store.
Stores a Boomerang value with the given key.
Stores an Android Bundle in a BoomerangStore with the given key.
Extension function for BoomerangStore that allows storing a value using a builder function. This is a convenient way to create and store a Boomerang in a single expression.
Tries to consume a value using a BoomerangCatcher. Default implementation drops the value if it's caught (catcher returns true).