whatIfHasExtras
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)
Content copied to clipboard
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
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)
Content copied to clipboard
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.