On this page
createPack
suspend fun createPack(context: Context, definition: MTOfflineRegionDefinition, metadata: ByteArray? = null): MTOfflinePack
Creates a new offline pack and adds it to the managed registry.
Return
The newly created MTOfflinePack instance.
Parameters
context
The Android context.
definition
The region and style definition for the offline pack.
metadata
Optional user-defined metadata to store alongside the pack.