PredictiveCacheOptions
public struct PredictiveCacheOptions
Specifies the content that a predictive cache fetches and how it fetches the content.
Pass an instance of this class into the NavigationOptions(styles:navigationService:voiceController:topBanner:bottomBanner:predictiveCacheOptions:)
initializer or NavigationMapView.enablePredictiveCaching(options:)
method.
-
Predictive cache Navigation related options
Declaration
Swift
public var predictiveCacheNavigationOptions: PredictiveCacheNavigationOptions
-
Predictive cache Map related options
Declaration
Swift
public var predictiveCacheMapsOptions: PredictiveCacheMapsOptions
-
How far around the user’s location caching is going to be performed.
Defaults to 2000 meters.
Declaration
Swift
@available(*, deprecated, message: "Use `predictiveCacheNavigationOptions` and `predictiveCacheMapsOptions` instead.") public var currentLocationRadius: CLLocationDistance { get set }
-
How far around the active route caching is going to be performed (if route is set).
Defaults to 500 meters.
Declaration
Swift
@available(*, deprecated, message: "Use `predictiveCacheNavigationOptions` and `predictiveCacheMapsOptions` instead.") public var routeBufferRadius: CLLocationDistance { get set }
-
How far around the destination location caching is going to be performed (if route is set).
Defaults to 5000 meters.
Declaration
Swift
@available(*, deprecated, message: "Use `predictiveCacheNavigationOptions` and `predictiveCacheMapsOptions` instead.") public var destinationLocationRadius: CLLocationDistance { get set }
-
Maxiumum amount of concurrent requests, which will be used for caching.
Defaults to 2 concurrent requests.
Declaration
Swift
@available(*, deprecated, message: "Use `predictiveCacheMapsOptions.maximumConcurrentRequests` instead.") public var maximumConcurrentRequests: UInt32 { get set }
-
The Authorization & Authentication credentials that are used for this service. If not specified - will be automatically intialized from the token and host from your app’s
info.plist
.Declaration
Swift
public var credentials: Credentials
-
Declaration
Swift
public init()