NavigationMinimapControllerViewModel

class NavigationMinimapControllerViewModel(sdkContext: Context, options: MapControllerOptions, navigationManager: NavigationManager) : MapControllerViewModel, AutoCloseable

MapControllerViewModel of the navigator minimap: a minimap connected to navigationManager — the camera follows the position on the route.

Creation starts in the constructor. The instance must be closed when the minimap is no longer needed; closing disconnects the map from the navigator and closes the controller.

Main thread only.

Constructors

Link copied to clipboard
constructor(sdkContext: Context, options: MapControllerOptions, navigationManager: NavigationManager)

Properties

Link copied to clipboard
open override val state: StateFlow<MapControllerState>

Functions

Link copied to clipboard
open override fun close()