AATransitionResult

data class AATransitionResult(val success: Boolean, val fromState: AANavigationState, val toState: AANavigationState, val action: AANavigationAction, val error: String? = null)

Result of a state transition attempt.

Constructors

Link copied to clipboard
constructor(success: Boolean, fromState: AANavigationState, toState: AANavigationState, action: AANavigationAction, error: String? = null)

Properties

Link copied to clipboard

The action that was attempted

Link copied to clipboard

Error message if the transition was invalid

Link copied to clipboard

The state before the transition attempt

Link copied to clipboard

Whether the transition was valid and executed

Link copied to clipboard

The state after the transition (same as fromState if invalid)