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.

  • Initializes a predictive cache.

    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 to nil, predictive caching is disabled for map tiles.