navigate

fun navigate(destination: String, navigationData: Map<String, AnySerializable>? = null, poppingUpTo: PopUpTo? = null, launchSingleTop: Boolean = true)

Pushes destination onto this backstack — the mechanism behind Navigate.

Parameters

destination

screen id to navigate to.

navigationData

navigation arguments the destination receives.

poppingUpTo

when non-null, pops entries up to PopUpTo.target (inclusive or not, per PopUpTo.inclusive) before pushing destination — a no-op for the popping step if PopUpTo.target isn't found on the stack; the push to destination still happens either way.

launchSingleTop

when true (the default) and destination is already the current top entry, this call is a no-op entirely (the poppingUpTo step doesn't run either).