storeValue

fun BoomerangStore.storeValue(key: String, bundle: Bundle)(source)

Stores an Android Bundle in a BoomerangStore with the given key.

This extension function is only available on the Android platform. It converts the Bundle to an AndroidBoomerang before storing it.

Parameters

key

The key to store the value under

bundle

The Android Bundle to store

inline fun BoomerangStore.storeValue(key: String, resultBuilder: Boomerang.() -> Unit)(source)

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.

Example usage:

boomerangStore.storeValue("myKey") {
putString("name", "John")
putInt("age", 30)
}

Parameters

key

The key to store the value with

resultBuilder

A lambda with receiver that configures the Boomerang instance