DefaultBetterRoutePromptViewModel
Default implementation of BetterRoutePromptViewModel. Manages better route suggestions during navigation with automatic timeout.
Features:
Automatically dismisses suggestions after configurable timeout
Shows remaining time as a percentage for UI progress indicators
Integrates with NavigationManager for real-time route updates
Parameters
The navigation manager providing route updates
Duration before auto-dismissal (default: 30 seconds)
Delay between progress updates in milliseconds (default: 100ms)
Constructors
Properties
Observable state of the current better route suggestion. Null when no better route is available.
Observable state of the remaining time progress (0.0 to 1.0). 1.0 = full time remaining, 0.0 = timeout reached. Updates approximately 10 times per second for smooth progress animations.