MTOfflineManager

Manages the creation, retrieval, and deletion of offline map packs.

Functions

suspend fun createPack(context: Context, definition: MTOfflineRegionDefinition, metadata: ByteArray? = null): MTOfflinePack

Creates a new offline pack and adds it to the managed registry.

suspend fun getPack(context: Context, id: String): MTOfflinePack?

Retrieves a specific offline pack by its identifier.

suspend fun getPacks(context: Context): List<MTOfflinePack>

Retrieves all offline packs currently stored on disk.

suspend fun removePack(context: Context, pack: MTOfflinePack)

Deletes the specified offline pack from disk and removes it from the registry.