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.

    Recommended constructor. This action will initialize tile storage for navigation tiles.

    Declaration

    Swift

    public convenience init(predictiveCacheOptions: PredictiveCacheOptions, tileStoreMapOptions: TileStoreMapOptions)

    Parameters

    predictiveCacheOptions

    A configuration specifying various caching parameters, such as the radii of current and destination locations.

    tileStoreMapOptions

    Information about tile storages locations, as well as tilesets names for caching. If no Map tile store location is provided - predictive caching is disabled for map tiles.

  • Initializes a predictive cache.

    This action will initialize tile storage for navigation tiles. It is recommended to use init(predictiveCacheOptions:, tileStoreMapOptions:) instead to control navigator storage location.

    Seealso

    PredictiveCacheManager.init(predictiveCacheOptions:, tileStoreMapOptions)

    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.