whatIfHasExtras

inline fun Activity.whatIfHasExtras(whatIf: (Bundle) -> Unit)

An expression for invoking whatIf when the Activity's intent extras is not null and not empty.

Parameters

whatIf

An executable lambda function if the Activity's extra data is not null.


inline fun Activity.whatIfHasExtras(whatIf: (Bundle) -> Unit, whatIfNot: () -> Unit)

An expression for invoking whatIf when the Activity's intent extras is not null and not empty. If the intent extras is null or empty, whatIfNot will be invoked instead of the whatIf.

Parameters

whatIf

An executable lambda function if the Activity's extra data is not null.

whatIfNot

An executable lambda function if the Activity's extra data is null.


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

An expression for invoking whatIf when the Activity's intent extras is not null and not empty.

Parameters

name

A given key related to an extra data.

whatIf

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


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

An expression for invoking whatIf when the Activity's intent extras is not null and not empty. If the intent extras is null or empty, 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 extra data.

whatIfNot

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