Click or drag to resize

MobileMapPackageUnpackAsync Method (String, String)

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

Namespace:  Esri.ArcGISRuntime.Mapping
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.7.0.0
Syntax
C#
public static Task UnpackAsync(
	string mobileMapPackageFilePath,
	string outputDirectory
)

Parameters

mobileMapPackageFilePath
Type: SystemString
The path to a mobile map package file (.mmpk)
outputDirectory
Type: SystemString
The path to a directory to write the mobile map package contents.

Return Value

Type: Task
A Task representing the asynchronous unpack operation.
Exceptions
ExceptionCondition
ExpiredExceptionPackage was authored to prevent expired access.
Remarks
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.
See Also