Navigator

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Delivers the result to the destination that created key.

Link copied to clipboard
abstract fun getEntryFor(id: StackEntry.Id): StackEntry<*>
Link copied to clipboard
abstract fun getTopEntryFor(destinationId: DestinationId<*>): StackEntry<*>
Link copied to clipboard
abstract fun navigateBack()

Removes the top entry from the backstack to show the previous destination.

Link copied to clipboard
abstract fun <T : BaseRoute> navigateBackTo(popUpTo: KClass<T>, inclusive: Boolean = false)

Removes all entries from the backstack until T. If inclusive is true T itself will also be removed.

Link copied to clipboard
inline fun <T : NavRoute> Navigator.navigateBackTo(inclusive: Boolean = false)

Removes all entries from the backstack until T. If inclusive is true T itself will also be removed.

Link copied to clipboard
abstract fun navigateTo(route: NavRoute)

Triggers navigation to the given route.

Link copied to clipboard
abstract fun navigateUp()

Triggers up navigation.

Link copied to clipboard

Register for receiving navigation results.

Link copied to clipboard
abstract fun replaceAllBackStacks(root: NavRoot)

Remove all back stacks and create a new back stack with the given root.

Link copied to clipboard
abstract fun showRoot(root: NavRoot)

Show root as the current destination. If there already is a back stack for root, regardless of whether it is the current back stack or not, the stack will be cleared.

Link copied to clipboard
abstract fun switchBackStack(root: NavRoot)

Show the existing back stack for root or create a new back stack if none exists. If an existing back stack is shown it will be shown in it's previous state. If root is the root of the current back stack this is a no-op.