whatIfHasSerializableExtra

inline fun <T : Serializable> Activity.whatIfHasSerializableExtra(name: String, whatIf: (T) -> Unit)

An expression for invoking whatIf when the Activity's intent extras is has a Serializable extra by name.

Parameters

name

A given key related to an extra data.

whatIf

An executable lambda function if the Activity has a serializable extra data.


inline fun <T : Serializable> Activity.whatIfHasSerializableExtra(name: String, whatIf: (T) -> Unit, whatIfNot: () -> Unit)

An expression for invoking whatIf when theActivity's intent extras is has a Serializable extra by name. If the intent extras is null, whatIfNot will be invoked instead of the whatIf.

Parameters

name

A given key related to an extra data.

whatIf

An executable lambda function if the Activity has a serializable extra data.

whatIfNot

An executable lambda function if the Activity has not a serializable extra data.