NavAction

class NavAction(navController: NavHostController)

Handles the navigation actions.

Constructors

Link copied to clipboard
constructor(navController: NavHostController)

Functions

Link copied to clipboard
fun <K : NavArgumentKey> navigate(navRoute: NavRoute<K>, navOptions: NavOptions? = null, navigatorExtras: Navigator.Extras? = null)

Navigates to the given navRoute in the current NavGraph. If an invalid route is given, an IllegalArgumentException will be thrown.

Link copied to clipboard

Attempts to navigate up in the navigation hierarchy.

Link copied to clipboard

Attempts to pop the controller's back stack.

fun <K : NavArgumentKey> popBackStack(navRoute: NavRoute<K>, inclusive: Boolean, saveState: Boolean = false): Boolean

Pops the back stack to a specific navRoute.