ArcGIS Runtime SDK for iOS: AGSMobileMapPackage(AGSDeprecated) Category Reference
ArcGIS Runtime SDK for iOS  100.15
AGSMobileMapPackage(AGSDeprecated) Category Reference

Class Methods

(id< AGSCancelable >) + checkDirectReadSupportForMobileMapPackageAtFileURL:completion:
 

Method Documentation

◆ checkDirectReadSupportForMobileMapPackageAtFileURL:completion:

+ (id<AGSCancelable>) checkDirectReadSupportForMobileMapPackageAtFileURL: (NSURL *)  fileURL
completion: (void(^)(BOOL isDirectReadSupported, NSError *__nullable error))  completion 

Checks if the package can be read directly without requiring to be unpacked. isDirectReadSupported will always be YES after deprecation in version 100.7.

Prior to ArcGIS Runtime version 100.7, some data formats (such as AGSRasterLayer) could only be accessed if they were unpacked from the mobile map package file (.mmpk). In these situations, isDirectReadSupported would be NO and you would need to call the AGSMobileMapPackage::unpackWithMobileMapPackageFileURL:outputDirectory:completion: 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 file. isDirectReadSupported is always YES.

Since this method is no longer required it can be removed from calling code including any subsequent use of AGSMobileMapPackage::unpackWithMobileMapPackageFileURL:outputDirectory:completion:.

Parameters
fileURLA file URL to the mmpk file.
completionA block that is invoked with information about whether direct read is supported if the operation succeeds, or an error if it fails.
Returns
An operation that can be canceled.
See also
AGSMobileMapPackage::unpackWithMobileMapPackageFileURL:outputDirectory:completion:
Since
100.2.1
Deprecated:
100.7 This method is no longer required as the result is always true. It can be removed from calling code including any subsequent use of AGSMobileMapPackage::unpackWithMobileMapPackageFileURL:outputDirectory:completion:.

Extends class AGSMobileMapPackage.