On this page
Companion.createPack
suspend fun createPack(context: Context, region: MTOfflineRegionDefinition, metadataContext: ByteArray? = null): MTOfflinePack
Creates a new offline pack and initializes its on-disk storage and metadata.
Return
A newly initialized MTOfflinePack.
Parameters
context
Android context.
region
The definition of the region to be downloaded.
metadataContext
Optional custom data (e.g. JSON) to attach to the pack metadata.
Was this helpful?