NavigationLogic
Side-effecting logic for the navigation system.
NavigationLogic orchestrates all navigation operations — guard evaluation, entry-point resolution, back-stack synthesis, deep-link handling, and lifecycle callbacks. It is created automatically by NavigationModule and registered with the store.
The preferred way to trigger navigation from application code is via the StoreAccessor extension functions (navigation { }, navigateBack(), etc.) which delegate to the public methods on this class. Direct access via storeAccessor.selectLogic<NavigationLogic>() is also supported when finer control is needed.
// Typical usage via extension (recommended)
storeAccessor.navigation {
navigateTo(ProfileScreen)
}
// Or directly
val navLogic = storeAccessor.selectLogic<NavigationLogic>()
navLogic.navigate { navigateTo(ProfileScreen) }See also
Constructors
Functions
Clear the entire backstack and optionally navigate to a new route.
Execute a navigation operation. Evaluates intercept guards and entry definitions before committing navigation.
Navigate to a route with optional parameters and configuration.
Navigate back in the navigation stack.
Navigate to a deep link route with guard evaluation. Checks alias mappings first before resolving the route normally.