INavigationViewFactory
Navigator UI Factory.
Methods
func makeNavigationViewControlsFactory() -> INavigationViewControlsFactory
Create a factory of navigator controls.
func makeNavigationMapControlsFactory(
map: Map,
followManager: INavigatorFollowManager
) -> INavigationMapControlsFactory
Create 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)
Create the navigator UI.
Parameters
func makeNavigationView(
map: Map,
navigationManager: NavigationManager,
navigationViewControlsFactory: INavigationViewControlsFactory?,
navigationMapControlsFactory: INavigationMapControlsFactory?
) -> (UIView & INavigationView)
Create 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
Create the UI of a routes preview list.
Parameters
func makeRouteView(_ route: TrafficRoute) -> IRouteView
Create the UI of a route preview.
Parameters
func makeRouteDetailsView(
_ route: TrafficRoute,
startName: String?,
finishName: String?
) -> IRouteDetailsView
Create the UI of route details.
Parameters
route
TrafficRoute
Route.
startName
String?
Name of the start point of the route.
finishName
String?
Name of the end point of the route.
Returns