ArcGIS Runtime SDK for iOS
100.15
|
Class Methods | |
(id< AGSCancelable >) | + 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:
.
fileURL | A file URL to the mmpk file. |
completion | A block that is invoked with information about whether direct read is supported if the operation succeeds, or an error if it fails. |
AGSMobileMapPackage::unpackWithMobileMapPackageFileURL:outputDirectory:completion:
AGSMobileMapPackage::unpackWithMobileMapPackageFileURL:outputDirectory:completion:
. Extends class AGSMobileMapPackage.