-
init(directions:tileStoreConfiguration:routingProviderSource:alternativeRouteDetectionStrategy:utilizeSensorData:navigatorPredictionInterval:liveIncidentsOptions:statusUpdatingSettings:logLevel:)
Creates new `Values` instance. - parameter directions: Default `Directions` instance. Some types allow you to customize the directions instance and
fall back to the
NavigationSettings.directions
by default. - parameter tileStoreConfiguration: Options for configuring how map and navigation tiles are stored on the device. SeeTileStoreConfiguration
for more details. - parameter routingProviderSource: Configures the type of routing to be used by various SDK objects when providing route calculations. Use this value to configure usage of online vs. offline data for routing. - parameter alternativeRouteDetectionStrategy: Configures howAlternativeRoute
s will be detected during navigation process. - parameter utilizeSensorData: Enables using sensors data to improve positioning. - parameter navigatorPredictionInterval: Defines approximate navigator prediction between location ticks. - parameter liveIncidentsOptions: Configures Electronic Horizon live incidents. - parameter statusUpdatingSettings: Configures how navigator status is polled. - parameter logLevel: Logging level for Mapbox SDKs.Declaration
Swift
public init(directions: Directions = .shared, tileStoreConfiguration: TileStoreConfiguration = .default, routingProviderSource: RoutingProviderSource = .hybrid, alternativeRouteDetectionStrategy: AlternativeRouteDetectionStrategy? = .init(), utilizeSensorData: Bool = false, navigatorPredictionInterval: TimeInterval? = nil, liveIncidentsOptions: IncidentsOptions? = nil, statusUpdatingSettings: StatusUpdatingSettings? = nil, logLevel: MapboxCommon.LoggingLevel = .info)