ArcGIS Runtime SDK for iOS: AGSMobileScenePackage(AGSDeprecated) Category Reference
ArcGIS Runtime SDK for iOS  100.12
AGSMobileScenePackage(AGSDeprecated) Category Reference

Class Methods

(id< AGSCancelable >) + checkDirectReadSupportForMobileScenePackageAtFileURL:completion:
 

Method Documentation

◆ checkDirectReadSupportForMobileScenePackageAtFileURL:completion:

+ (id<AGSCancelable>) checkDirectReadSupportForMobileScenePackageAtFileURL: (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 a mobile scene package file (.mspk). In these situations, isDirectReadSupported would be NO and you would need to call AGSMobileScenePackage::unpackWithMobileScenePackageFileURL:outputDirectory:completion: to unpack the mspk file.

From version 100.7 and onwards this limitation has been removed allowing the data to be read directly from the mobile scene package. isDirectReadSupported is always YES.

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

Parameters
fileURLThe file URL to the .mspk 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
AGSMobileScenePackage::unpackWithMobileScenePackageFileURL:outputDirectory:completion:
Since
100.5
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 AGSMobileScenePackage::unpackWithMobileScenePackageFileURL:outputDirectory:completion:.

Extends class AGSMobileScenePackage.