parcelable

inline fun <T : Parcelable> Bundle.parcelable(key: String): T?

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

Return

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

Parameters

key

the key of the value