Guia provides an extensive list of navigation operations.
val Navigator.currentKey
Returns the current NavigationKey
val Navigator.currentEntry
Returns the current BackStackEntry
fun Navigator.push(
navigationKey: NavigationKey
)
Adds a new key to the backstack.
fun Navigator.pop(): Boolean
Pops the last entry in the backstack.
Adds a new key to the backstack.
Loops through navigation keys from the top of the backstack until the predicate is satisfied and replaces all those keys with a new key.
replaceUpTo [Key]
Replaces all navigation keys in the backstack until a key of type [Key] is reached.
Moves a navigation key that matches the given condition to the top
moveToTop [Key]
Moves a navigation key of type [Key] to the top of backstack.
Navigates to a navigation key and removes all navigation keys that are of the same type from the backstack.
Navigates to [navigationKey] if the currentKey is not of the same type.
Pops to a [NavigationKey] matching [predicate]
Pops to a [NavigationKey] of the same type [Key].
Removes all navigation keys matching [predicate].
removeAll [Key]
Removes all navigation keys that are of type [Key].
Pops to the root of the backstack.
Clears the backstack and sets a new root [NavigationKey]
Whether or not the navigator has more than one element and can pop back stack.
Checks if none of the navigation keys matches the condition.
Checks if none of the navigation keys is of type [Key].
Checks if any of the navigation keys matches the condition.
Checks if any of the navigation keys is of type [Key].