whatIfHasParcelableArrayListExtra

inline fun <T : Parcelable> Activity.whatIfHasParcelableArrayListExtra(name: String, whatIf: (ArrayList<T>) -> Unit)

An expression for invoking whatIf when the Activity's intent extras is has an ArrayList of object extra by name.

Parameters

name

A given key related to an extra data.

whatIf

An executable lambda function if the Activity has a parcelable array list extra data.


inline fun <T : Parcelable> Activity.whatIfHasParcelableArrayListExtra(name: String, whatIf: (ArrayList<T>) -> Unit, whatIfNot: () -> Unit)

An expression for invoking whatIf when the Activity's intent extras is has an ArrayList of object 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 parcelable array list extra data.

whatIfNot

An executable lambda function if the Activity has not a parcelable array list extra data.