getSerializableExtra

inline fun <T : Serializable> Intent.getSerializableExtra(key: String, callback: T): T

Retrieve extended data from the intent.

Parameters

key

The name of the desired item.

callback

As the return value if the retrieve extended data from the intent is null.

See also


inline fun <T : Serializable> getSerializableExtra(intent: Intent, key: String): T?

See also