PredictiveCacheManager
public class PredictiveCacheManager
Proactively fetches tiles which may become necessary if the device loses its Internet connection at some point during passive or active turn-by-turn navigation.
Typically, you initialize an instance of this class and retain it as long as caching is required.
Note
This object uses global tile store configuration fromNavigationSettings.tileStoreConfiguration
.
-
Initializes a predictive cache.
Recommended constructor. This action will initialize tile storage for navigation tiles.
Declaration
Swift
public convenience init(predictiveCacheOptions: PredictiveCacheOptions, styleSourcePaths: [String])
Parameters
predictiveCacheOptions
A configuration specifying various caching parameters, such as the radii of current and destination locations.
styleSourcePaths
Tilesets names for caching.
-
Initializes a predictive cache.
This action will initialize tile storage for navigation tiles. It is recommended to use
init(predictiveCacheOptions:styleSourcePaths:)
instead to control navigator storage location.Declaration
Swift
public init(predictiveCacheOptions: PredictiveCacheOptions, mapOptions: MapOptions?)
Parameters
predictiveCacheOptions
A configuration specifying various caching parameters, such as the radii of current and destination locations.
mapOptions
Information about
MapView
tiles such as the location and tilesets to cache. If this argument is set tonil
, predictive caching is disabled for map tiles.