DefaultNavigationControlsState
Default implementation of NavigationControlsState that creates and manages all navigation ViewModels with default implementations.
This class serves as a single point of creation and lifecycle management for all navigation-related ViewModels. It ensures proper initialization order and provides a clean way to pass dependencies to the UI layer.
Important: Call onCleared when navigation is finished to properly release resources and prevent memory leaks.
Parameters
The map instance for map-related operations
Manager for navigation state and route information
Composable minimap state (optional)
Whether to start in free roam mode by default
See also
for the interface definition
Constructors
Properties
ViewModel for better route suggestions that appear during navigation.
ViewModel that coordinates the visibility and state of all navigation controls.
ViewModel for the main navigation dashboard with audio controls and route information.
ViewModel for the finish route button shown when navigation is completed.
ViewModel for maneuver visualization showing upcoming turn.
ViewModel that manages the visibility and layout of map controls (zoom, compass, my location).
ViewModel that manages the visibility and layout of navigation message.
ViewModel for minimap visualization showing simplified map in circle.
ViewModel for route overview mode that allows users to see the entire route.
ViewModel displaying current speed, speed limit and camera warnings.
ViewModel for traffic line visualization showing traffic conditions and route objects.