MPDataSetCacheManager
class MPDataSetCacheManager
Functions
Link copied to clipboard
open fun addDataSetWithCachingScope(@NonNull solutionID: String, @NonNull cachingScope: MPDataSetCacheScope): MPDataSetCache
Adds a new MPDataSetCache
open fun addDataSetWithCachingScope(@NonNull solutionID: String, @NonNull cachingScope: MPDataSetCacheScope, baseMapTilesEnabled: Boolean): MPDataSetCache
Adds a new MPDataSetCache with base-map tile caching enabled or disabled from the start, saving a follow-up call to setBaseMapTilesEnabledScoped to every venue in the solution.
open fun addDataSetWithCachingScope(@NonNull solutionID: String, @Nullable venueIds: List<String>, @NonNull cachingScope: MPDataSetCacheScope): MPDataSetCache
open fun addDataSetWithCachingScope(@NonNull solutionID: String, @Nullable venueIds: List<String>, @NonNull cachingScope: MPDataSetCacheScope, baseMapTilesEnabled: Boolean): MPDataSetCache
Adds a new MPDataSetCache with base-map tile caching enabled or disabled from the start, saving a follow-up call to setBaseMapTilesEnabledThe flag only marks the dataset, it downloads nothing — call synchronizeBaseMapTiles for that.
Link copied to clipboard
Adds a listener that gets called when a MPDataSetCache has been added/removed
Link copied to clipboard
Link copied to clipboard
Returns the MPIMapProviderBaseMapCache registered with setBaseMapCacheProvider
Link copied to clipboard
Gets a managed MPDataSetCache by it's id
Link copied to clipboard
Returns the MPDataSetCacheManager singleton, if the MPDatasetManager has been initialized
Link copied to clipboard
Returns a list of managed MPDataSetCache
Link copied to clipboard
open fun getSyncSizesForDataSetCaches(@NonNull caches: List<MPDataSetCache>, @NonNull listener: MPDataSetCacheManagerSizeListener)
Fetches the sizes of caches
Link copied to clipboard
Initializes the MPDataSetCacheManager
Link copied to clipboard
Checks whether the MPDataSetCacheManager singleton has been initialized
Link copied to clipboard
Clears in-memory dataset entries and reloads from the persisted datasets file on disk.
Link copied to clipboard
Removes a MPDataSetCache from the managed datasets Also removes any base-map tiles cached for this dataset through the registered provider, since those live in the map provider's own storage rather than in the folder deleted here.
Link copied to clipboard
Link copied to clipboard
Removes a listener from the list of listener, that gets invoked when a MPDataSetCache has been added/removed
Link copied to clipboard
Link copied to clipboard
Registers the MPIMapProviderBaseMapCache that synchronizeBaseMapTiles caches base-map tiles with, and that removeDataSetCache removes them through.
Link copied to clipboard
Caches the map provider's own base-map tiles for every managed MPDataSetCache that has base-map tile caching enabled.
open fun synchronizeBaseMapTiles(@NonNull dataSetCaches: List<MPDataSetCache>, @Nullable listener: MPBaseMapCacheRegionListener)
Caches the map provider's own base-map tiles for the given MPDataSetCaches, as synchronizeBaseMapTiles does for every flagged dataset.
Link copied to clipboard
Synchronizes all managed datasets MPDataSetCache
Synchronize a list of MPDataSetCaches