create

abstract suspend fun create(definition: OfflinePackDefinition, metadata: ByteArray = ByteArray(0)): OfflinePack(source)

Creates and registers an offline pack that downloads the resources needed to use the given region offline. The pack starts paused; to actually start the download, call resume.

Throws

if the operation failed.