Package-level declarations

Functions

Link copied to clipboard

Removes the current destination when the stack can safely go back.

Link copied to clipboard
fun <T : NavKey> NavBackStack<T>.backOr(fallback: () -> Unit): Boolean

Goes back or runs fallback when the stack is already at its root.

Link copied to clipboard
fun <T : NavKey> NavBackStack<T>.backTo(targetScreen: T): Boolean

Removes destinations until targetScreen becomes the current destination.

Link copied to clipboard

Replaces the whole stack with screen.

Link copied to clipboard

Adds screen only when it is not already the current destination.

Link copied to clipboard
fun <T : NavKey> NavBackStack<T>.navigateTo(screen: T)

Adds screen to the end of this Navigation 3 back stack.