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
)

Settings constructor.

Parameters
mapControlsBehaviour
NavigationViewMapControlsBehaviour

Behavior of the camera controllers in navigation mode.

distanceFormattingStrategy
DistanceFormattingStrategy

A way of formatting distances.

durationFormattingStrategy
DurationFormattingStrategy

A way to format the time interval.

durationValueFormattingStrategy
DurationValueFormattingStrategy

Method of formatting the time interval value.

timeFormattingStrategy
TimeFormattingStrategy

Way of formatting date/time.

speedFormattingStrategy
SpeedFormattingStrategy

Method of formatting speed.

theme
NavigationViewTheme

Navigator theme.

roadEventCardViewOptions
RoadEventCardViewOptions

Traffic event card settings.

roadEventCreationEnabled
Bool

Whether or not a traffic event creation controller is needed.

Properties

Navigator default interface settings.