serializable

inline fun <T : Serializable> Bundle.serializable(key: String): T?

Retrieve a value from the Bundle using the given key. The value should have been added using Bundle.putSerializable with a value that implements the Serializable interface.

Return

the value of the key, or null if no such value was found

Parameters

key

the key of the value