navigate

abstract fun navigate(    @IdRes resId: Int,     args: Bundle? = null,     navOptions: NavOptions? = null)

method to run navigation to another fragment

Parameters

resId

resource Id of navigation action

args

arguments to pass data when opening another fragment, default null

navOptions

used for adding action like singleTop when opening another fragment, default null


abstract fun navigate(    deepLink: Uri,     navOptions: NavOptions? = null,     navigatorExtras: Navigator.Extras? = null)

method to run navigation using URI, used for deep link

Parameters

deepLink

Uri for the deep link page of the application

navOptions

used for adding action like singleTop when opening another fragment, default null

Sources

Link copied to clipboard
Link copied to clipboard