Click or drag to resize

MobileMapPackageUnpackAsync Method (String, String, CancellationToken)

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

Namespace:  Esri.ArcGISRuntime.Mapping
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.11.0
public static Task UnpackAsync(
	string mobileMapPackageFilePath,
	string outputDirectory,
	CancellationToken cancellationToken


Type: SystemString
The path to a mobile map package file (.mmpk)
Type: SystemString
The path to a directory to write the mobile map package contents.
Type: System.ThreadingCancellationToken
A CancellationToken for canceling the unpack operation.

Return Value

Type: Task
A Task representing the asynchronous unpack operation.
ExpiredExceptionPackage was authored to prevent expired access.
A package can contain data or functionality that can only be used when the package is unpacked. One reason to unpack a mobile map packages is data content, raster files in particular require the package to be in an unpacked format before the mobile map package can be successfully loaded. Use IsDirectReadSupportedAsync(String) to determine if a package needs to be unpacked. If the last level of the outputDirectory is not present it will be created as part of the unpack task. The returned task can be canceled with cancellationToken to abort the unpack.
See Also