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