OfflineManager
Manages the offline packs and ambient cache that belong to one map runtime.
Properties
Functions
Link copied to clipboard
Deletes ambient-cache resources that no offline pack needs.
Link copied to clipboard
abstract suspend fun create(definition: OfflinePackDefinition, metadata: ByteArray = ByteArray(0)): OfflinePack
Creates a paused offline pack for definition. Call resume to start its download.
Link copied to clipboard
Unregisters pack and permits the cache to remove resources that no remaining pack needs.
Link copied to clipboard
Checks the resources in pack against the server and downloads changed resources.
Link copied to clipboard
Checks ambient-cache resources against the server and downloads changed resources.
Link copied to clipboard
Merges the offline packs and their resources from databaseFile into this manager's database.
Link copied to clipboard
Pauses the download of pack.
Link copied to clipboard
Resumes the download of pack.
Link copied to clipboard
Sets the maximum ambient-cache size in bytes. A size of zero disables ambient caching.