Companion

object Companion

Functions

Link copied to clipboard
suspend fun unpack(mobileMapPackageFilePath: String, outputDirectory: String): Result<Unit>

Unpacks a mobile map package file (.mmpk) to an output directory. If the last level of the output_directory is not present, it will be created as part of the unpack task. The returned task can be canceled with Result.cancel() to abort the unpack. The unpack task writes the full content of the mobile map package to the output directory. Care should be taken on devices with limited storage space, especially if the original package is very large. After unpacking, you can remove the original .mmpk file from the device.