#include <MPDataSetCacheManager.h>
◆ addDataSet:
Add data set to the list of managed data sets.
- Parameters
-
dataSetId | Data set id of the data set that should be added. |
- Returns
- The cache object if data set was successfully added as a result of this call, if the dataset already existed this method returns nil.
◆ addDataSet:cachingScope:
Add data set to the list of managed data sets.
- Parameters
-
dataSetId | Data set id of the data set that should be added. |
scope | Caching scope for this dataset. |
- Returns
- The cache object if data set was successfully added as a result of this call, if the dataset already existed this method returns nil.
◆ cancelSynchronization
- (void) cancelSynchronization |
|
|
|
Cancel any running synchronization of data sets.
◆ cancelSynchronizationOfCacheItems:
Cancel synchronization of data for the given cache items.
- Parameters
-
items | CacheItems to cancel sync of. |
◆ dataSetForCurrentMapsIndoorsAPIKey
Get the dataset-object for the current MapsIndoors API key / solution
- Returns
- MPDataSetCache*
◆ dataSetWithId:
Get the dataset-object for the given dataSetId.
- Parameters
-
- Returns
- MPDataSetCache* or nil
◆ fetchSyncSizesForDataSetCaches:delegate:
Determine synchronization sizes for the given set of MPDataSetCaches.
- Parameters
-
dataSetCaches | MPDataSetCaches to determine sync sizes for. |
delegate | callback/progress receiver |
◆ NS_UNAVAILABLE [1/2]
+ (instancetype) NS_UNAVAILABLE |
|
|
|
◆ NS_UNAVAILABLE [2/2]
- (instancetype) NS_UNAVAILABLE |
|
|
|
◆ removeDataSet:
Remove data set from the list of managed data sets. This will remove any cached content for that data set as well. If the dataset to be removed is the current MapsIndoors dataset, it is not removed at this time, but scheduled for deletion at a later time.
- Parameters
-
dataSet | Data set that should be removed. |
- Returns
- YES if data set was successfully removed, else NO.
◆ setCachingScope:cacheItem:
Set a caching scope for given cache item.
- Parameters
-
scope | Caching scope. |
cacheItem | Cache item. |
- Returns
- YES if strategy is changed for this item, else NO.
◆ setCachingStrategy:cacheItem:
Set a caching strategy for given cache item.
- Parameters
-
strategy | Caching strategy. |
cacheItem | Cache item. |
- Returns
- YES if strategy is set for this item, else NO.
◆ synchronizeCacheItems:
Fetch and update content for given cache items. The delegate object receives the completion event.
- Parameters
-
items | The cache items to perform a synchronisation for. |
◆ synchronizeContent
- (void) synchronizeContent |
|
|
|
Fetch and update content for all managed data sets. The delegate object receives the completion event.
◆ delegate
Data set manager delegate.
◆ isSyncing
Synchronization state of manager. If true, the manager is currently synchronising.
◆ managedDataSets
List of managed data sets.