navigateSafelyToAction

open fun navigateSafelyToAction(navControllerView: View, navDirection: NavDirections): Boolean

Will navigate safely to the navDirection provided. It will abort navigating if it cannot do so.

Return

true|false true if request was processed. false if aborted.

Parameters

navControllerView

view which will be used to find the navcontroller. Most likely, fragment::getView()

navDirection

The target destination