whatIfNotNullActivity

inline fun Fragment?.whatIfNotNullActivity(whatIf: (FragmentActivity) -> Unit)

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)

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.

Parameters

whatIf

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

whatIfNot

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