whatIfNotNullContext

inline fun Fragment?.whatIfNotNullContext(whatIf: (Context) -> Unit)

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)

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.

Parameters

whatIf

An executable lambda function if the Fragment's context is not null.

whatIfNot

An executable lambda function if the Fragment's context is null.