whatIfHasParcelableExtra
inline fun <T : Parcelable> Activity.whatIfHasParcelableExtra(name: String, whatIf: (T) -> Unit)
Content copied to clipboard
An expression for invoking whatIf when the Activity's intent extras is has an 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 extra data.
inline fun <T : Parcelable> Activity.whatIfHasParcelableExtra(name: String, whatIf: (T) -> Unit, whatIfNot: () -> Unit)
Content copied to clipboard
An expression for invoking whatIf when theActivity's intent extras is has an object extra by name. If the intent extras is null, whatIfNot will be invoked instead of the whatIf.