NavigationOutcome

Result of a NavigationLogic.navigate call.

Callers can ignore the return value for fire-and-forget behaviour (same as before), or inspect it to react to specific outcomes.

Example:

val outcome = navLogic.navigate { navigateTo(ProfileScreen) }
if (outcome is NavigationOutcome.Dropped) {
// another navigation was in progress, retry or notify the user
}

Inheritors

Types

Link copied to clipboard

Navigation was silently dropped because another navigation was already in progress.

Link copied to clipboard
data class Redirected(val to: String) : NavigationOutcome

Navigation was redirected by a guard.

Link copied to clipboard

Navigation was rejected by a guard.

Link copied to clipboard

Navigation was executed successfully.