ArcGIS Runtime SDK for iOS: AGSMobileMapPackage.h Source File
ArcGIS Runtime SDK for iOS  100.15
AGSMobileMapPackage.h
Go to the documentation of this file.
1 /*
2  COPYRIGHT 2022 ESRI
3 
4  All rights reserved under the copyright laws of the United States
5  and applicable international laws, treaties, and conventions.
6 
7  This material is licensed for use under the Esri Master License
8  Agreement (MLA), and is bound by the terms of that agreement.
9  You may redistribute and use this code without modification,
10  provided you adhere to the terms of the MLA and include this
11  copyright notice.
12 
13  See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english
14 
15  For additional information, contact:
16  Environmental Systems Research Institute, Inc.
17  Attn: Contracts and Legal Services Department
18  380 New York Street
19  Redlands, California, 92373
20  USA
21 
22  email: contracts@esri.com
23  */
24 
25 #import <Foundation/Foundation.h>
26 #import <ArcGIS/AGSLoadableBase.h>
27 #import <ArcGIS/AGSCancelable.h>
28 
29 @class AGSLocatorTask;
30 @class AGSMap;
31 @class AGSItem;
32 @class AGSExpiration;
33 
34 
35  //Required for Globals API doc
37 
83 
84 #pragma mark -
85 #pragma mark initializers
86 
87 
88 
95 -(instancetype)initWithFileURL:(NSURL *)fileURL;
96 
104 -(instancetype)initWithName:(NSString *)name;
105 
114 +(instancetype)mobileMapPackageWithFileURL:(NSURL *)fileURL;
115 
124 +(instancetype)mobileMapPackageWithName:(NSString *)name;
125 
126 #pragma mark -
127 #pragma mark properties
128 
146 @property (nullable, nonatomic, strong, readonly) AGSItem *item;
147 
157 @property (nullable, nonatomic, strong, readonly) AGSLocatorTask *locatorTask;
158 
170 @property (nonatomic, copy, readonly) NSArray<AGSMap*> *maps;
171 
175 @property (nonatomic, strong, readonly) NSURL *fileURL;
176 
196 @property (nonatomic, copy, readonly) NSString *version;
197 
220 @property (nullable, nonatomic, strong, readonly) AGSExpiration *expiration;
221 
222 #pragma mark -
223 #pragma mark methods
224 
241 -(void)close;
242 
252 +(id<AGSCancelable>)unpackMobileMapPackageAtFileURL:(NSURL *)fileURL
253  outputDirectory:(NSURL*)outputDirectory
254  completion:(void(^)(NSError * __nullable error))completion;
255 
256 @end
257 
259 
279 +(id<AGSCancelable>)checkDirectReadSupportForMobileMapPackageAtFileURL:(NSURL*)fileURL
280  completion:(void(^)(BOOL isDirectReadSupported, NSError * __nullable error))completion ;
281 
282 @end
283 
284 
Definition: AGSMobileMapPackage.h:258
Expiration details, that indicate whether a given package is out of date.
Definition: AGSExpiration.h:50
Object representing a unit of content.
Definition: AGSItem.h:43
A base class for loadables.
Definition: AGSLoadableBase.h:45
A task to geocode and reverse-geocode addresses and places.
Definition: AGSLocatorTask.h:51
A map containing 2D geographic content.
Definition: AGSMap.h:61
A mobile map package.
Definition: AGSMobileMapPackage.h:83
NSURL * fileURL
Definition: AGSMobileMapPackage.h:175
AGSExpiration * expiration
Definition: AGSMobileMapPackage.h:220
AGSLocatorTask * locatorTask
Definition: AGSMobileMapPackage.h:157
NSArray< AGSMap * > * maps
Definition: AGSMobileMapPackage.h:170
NSString * version
Definition: AGSMobileMapPackage.h:196
AGSItem * item
Definition: AGSMobileMapPackage.h:146
A protocol exposed by operations that allow cancellation.
Definition: AGSCancelable.h:38