Show / Hide Table of Contents

Method IsDirectReadSupportedAsync

IsDirectReadSupportedAsync(String)

Checks if the mobile map package can be read directly without requiring to be unpacked.

Declaration
public static Task<bool> IsDirectReadSupportedAsync(string mobileMapPackageFilePath)
Parameters
Type Name Description
String mobileMapPackageFilePath

the path to a mobile map package file (.mmpk)

Returns
Type Description
Task<System.Boolean>

A representing the asynchronous operation.

Remarks

Prior to ArcGIS Runtime version 100.7, some data formats (such as RasterLayer) could only be accessed if they were unpacked from the mobile map package file (.mmpk). In these situations, this method would return false and you would need to call UnpackAsync(String, String) to unpack the mmpk.

From version 100.7 and onwards this limitation has been removed allowing the data to be read directly from the mobile map package. This method always returns a result of true.

Since this method is no longer required it can be removed from calling code including any subsequent use of UnpackAsync(String, String).

Exceptions
Type Condition
ExpiredException

Package was authored to prevent expired access.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 100.13
.NET Framework100.3 - 100.8
.NET 5100.11
.NET Core 3.1100.7 - 100.8
Xamarin.Android100.3 - 100.13
Xamarin.iOS100.3 - 100.8
UWP100.3 - 100.15
In This Article
Back to top Copyright © 2022 Esri.