MPDataSetCacheManager

open class MPDataSetCacheManager

Functions

Link copied to clipboard
open fun addDataSetWithCachingScope(@NonNull solutionID: String, @NonNull cachingScope: MPDataSetCacheScope): MPDataSetCache
Adds a new MPDataSetCache
Link copied to clipboard
open fun addMPDataSetCacheListener(@NonNull listener: MPDataSetCacheListener)
Adds a listener that gets called when a MPDataSetCache has been added/removed
Link copied to clipboard
open fun addMPDataSetCacheSyncListener(@NonNull listener: MPDataSetCacheSyncListener)
Link copied to clipboard
open fun getDataSetByID(@NonNull dataSetID: String): MPDataSetCache
Gets a managed MPDataSetCache by it's id
Link copied to clipboard
open fun getInstance(): MPDataSetCacheManager
Returns the MPDataSetCacheManager singleton, if the MPDatasetManager has been initialized
Link copied to clipboard
open fun getManagedDataSets(): List<MPDataSetCache>
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
open fun initialize(@NonNull context: Context)
Initializes the MPDataSetCacheManager
Link copied to clipboard
open fun isInitialized(): Boolean
Checks whether the MPDataSetCacheManager singleton has been initialized
Link copied to clipboard
open fun removeDataSetCache(@NonNull dataSetCache: MPDataSetCache)
Removes a MPDataSetCache from the managed datasets
Link copied to clipboard
open fun removeListeners()
Link copied to clipboard
open fun removeMPDataSetCacheListener(@NonNull listener: MPDataSetCacheListener)
Removes a listener from the list of listener, that gets invoked when a MPDataSetCache has been added/removed
Link copied to clipboard
open fun removeMPDataSetCacheSyncListener(@NonNull listener: MPDataSetCacheSyncListener)
Link copied to clipboard
open fun synchronizeDataSets()
Synchronizes all managed datasets MPDataSetCache
open fun synchronizeDataSets(@NonNull dataSetCaches: List<MPDataSetCache>)
Synchronize a list of MPDataSetCaches