NavigationViewOptions | iOS SDK | 2GIS Documentation
iOS SDK

NavigationViewOptions

Navigator interface settings.

public init(
	mapControlsBehaviour: NavigationViewMapControlsBehaviour = .visibleWhenNavigationActive,
	distanceFormattingStrategy: DistanceFormattingStrategy = .default,
	durationFormattingStrategy: DurationFormattingStrategy = .default,
	durationValueFormattingStrategy: DurationValueFormattingStrategy = .default,
	timeFormattingStrategy: TimeFormattingStrategy = .default,
	speedFormattingStrategy: SpeedFormattingStrategy = .default,
	theme: NavigationViewTheme = .default,
	roadEventCardViewOptions: RoadEventCardViewOptions = .default,
	roadEventCreationEnabled: Bool = true,
	dashboardButtonSettings: DashboardButtonSettings = .default
)

Settings constructor.

Parameters
mapControlsBehaviour
NavigationViewMapControlsBehaviour

Behavior of the camera controllers in navigation mode.

distanceFormattingStrategy
DistanceFormattingStrategy

Way of formatting distances.

durationFormattingStrategy
DurationFormattingStrategy

Way to format the time interval.

durationValueFormattingStrategy
DurationValueFormattingStrategy

Formats the time interval value.

timeFormattingStrategy
TimeFormattingStrategy

Formats date/time.

speedFormattingStrategy
theme
NavigationViewTheme

Navigator theme.

roadEventCardViewOptions
RoadEventCardViewOptions

Traffic event card settings.

roadEventCreationEnabled
Bool

Whether a traffic event creation controller is needed.

dashboardButtonSettings
DashboardButtonSettings

Settings for a button in the bottom panel of the NavigationView.

Properties

Navigator default interface settings.