whatIfHasStringExtra

inline fun Activity.whatIfHasStringExtra(name: String, whatIf: (String) -> Unit)

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

Parameters

name

A given key related to an extra data.

whatIf

An executable lambda function if the Activity has an string extra data.


inline fun Activity.whatIfHasStringExtra(name: String, whatIf: (String) -> Unit, whatIfNot: () -> Unit)

An expression for invoking whatIf when the Activity's intent extras is has a string 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 an string extra data.

whatIfNot

An executable lambda function if the Activity has not an string extra data.