MobileMapPackageUtility QML Type

.mmpk files."> MobileMapPackageUtility QML Type | ArcGISQtQml
  • Esri.ArcGISRuntime
  • MobileMapPackageUtility
  • A utility that contains methods to work with .mmpk files. More...

    Import Statement: import Esri.ArcGISRuntime
    Since: Esri.ArcGISRuntime 100.2





    • bool cancelTask(string taskId)
    • string unpack(url mobileMapPackageFilePath, url outputDirectory)

    Detailed Description

    Use this singleton type to access helper methods that can be used in conjunction with a MobileMapPackage.

    Currently, this type contains two methods to help read raster layers in a .mmpk file. Unpacking can be performed by using the unpack method.

    Note: You cannot declare or create a component of this type in QML code. Rather, an instance is automatically created and only that single instance is available for use in the application.

    See also Cancelable.

    Property Documentation

    [read-only] unpackStatus : Enums.TaskStatus

    Returns the status of the unpack asynchronous operation (read-only).

    Check this status when the unpackStatusChanged signal emits, to determine if the operation is complete, in progress, or has errored.

    See also Enums.TaskStatus.

    Signal Documentation


    Emitted when the unpackStatus property changes.

    Note: The corresponding handler is onUnpackStatusChanged.

    Method Documentation

    bool cancelTask(string taskId)

    Cancel the task with the ID taskId.

    Returns false if the task cannot be canceled or there is no task with the specified id taskId.

    See also Cancelable.

    string unpack(url mobileMapPackageFilePath, url outputDirectory)

    Unpacks a mobile map package (.mmpk) file to an output directory.

    This method asynchronously unpacks the file specified by the mobileMapPackageFilePath and stores it at the location specified in the outputDirectory.

    The unpackStatusChanged signal emits when the operation is complete. Check the unpackStatus to make sure the operation completed successfully.

    Returns a task ID that can be used to cancel the unpack task.

    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.

    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.