whatIfNotNullActivity
inline fun Fragment?.whatIfNotNullActivity(whatIf: (FragmentActivity) -> Unit)
Content copied to clipboard
Author
skydoves (Jaewoong Eum)
An expression for invoking whatIf when the Activity is not null.
Parameters
whatIf
An executable lambda function if the Fragment's parent Activity is not null.
inline fun Fragment?.whatIfNotNullActivity(whatIf: (FragmentActivity) -> Unit, whatIfNot: () -> Unit)
Content copied to clipboard
Author
skydoves (Jaewoong Eum)
An expression for invoking whatIf when the Activity is not null. If the activity is null, whatIfNot will be invoked instead of the whatIf.