whatIfFindParentInterface

inline fun <T> Fragment?.whatIfFindParentInterface(whatIf: (T) -> Unit)

Author

skydoves (Jaewoong Eum)

An expression for invoking whatIf when the Fragment has an T interface as a parent.

Parameters

whatIf

An executable lambda function if the Fragment has an T interface as a parent.


inline fun <T> Fragment?.whatIfFindParentInterface(whatIf: (T) -> Unit, whatIfNot: () -> Unit)

Author

skydoves (Jaewoong Eum)

An expression for invoking whatIf when the Fragment has an T interface as a parent.

Parameters

whatIf

An executable lambda function if the Fragment has an T interface as a parent.

whatIfNot

An executable lambda function if the Fragment has not an T interface as a parent.