INavigationViewFactory
Navigator UI factory.
Methods
func makeNavigationViewControlsFactory() -> INavigationViewControlsFactory
Creates a factory of navigator controls.
func makeNavigationMapControlsFactory(
map: Map,
followManager: INavigatorFollowManager
) -> INavigationMapControlsFactory
Creates a factory of map controls in the navigator.
Parameters
map
Map
Map controller.
followManager
INavigatorFollowManager
Tracking mode switch in the navigator.
Returns
func makeNavigationView(
map: Map,
navigationManager: NavigationManager
) -> (UIView & INavigationView)
Creates the navigator UI.
Parameters
func makeNavigationView(
map: Map,
navigationManager: NavigationManager,
navigationViewControlsFactory: INavigationViewControlsFactory?,
navigationMapControlsFactory: INavigationMapControlsFactory?
) -> (UIView & INavigationView)
Creates the navigator UI.
Parameters
map
Map
Map controller.
navigationManager
NavigationManager
Navigation service.
navigationViewControlsFactory
INavigationViewControlsFactory?
Custom factory of the navigator controls. If nil, the default implementation will be used.
navigationMapControlsFactory
INavigationMapControlsFactory?
Custom map controls factory in the navigator. If nil, the default implementation will be used.
func makeRouteListView(_ routes: [TrafficRoute]) -> IRouteListView
Creates the UI of a routes preview list.
Parameters
func makeRouteView(_ route: TrafficRoute) -> IRouteView
Creates the UI of a route preview.
Parameters
func makeRouteDetailsView(
_ route: TrafficRoute,
startName: String?,
finishName: String?
) -> IRouteDetailsView
Creates the UI of route details.
Parameters
route
TrafficRoute
Route.
startName
String?
Name of the starting point of the route.
finishName
String?
Name of the finish point of the route.
Returns