ArcGIS Runtime SDK for iOS: AGSMobileMapPackage.h Source File
ArcGIS Runtime SDK for iOS  100.11
AGSMobileMapPackage.h
Go to the documentation of this file.
1 /*
2  COPYRIGHT 2021 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 
28 @class AGSLocatorTask;
29 @class AGSMap;
30 @class AGSItem;
31 @class AGSExpiration;
32 
33 @protocol AGSCancelable;
34 
35 
36  //Required for Globals API doc
38 
84 
85 #pragma mark -
86 #pragma mark initializers
87 
88 
89 
96 -(instancetype)initWithFileURL:(NSURL *)fileURL;
97 
105 -(instancetype)initWithName:(NSString *)name;
106 
115 +(instancetype)mobileMapPackageWithFileURL:(NSURL *)fileURL;
116 
125 +(instancetype)mobileMapPackageWithName:(NSString *)name;
126 
127 #pragma mark -
128 #pragma mark properties
129 
147 @property (nullable, nonatomic, strong, readonly) AGSItem *item;
148 
158 @property (nullable, nonatomic, strong, readonly) AGSLocatorTask *locatorTask;
159 
171 @property (nonatomic, copy, readonly) NSArray<AGSMap*> *maps;
172 
176 @property (nonatomic, strong, readonly) NSURL *fileURL;
177 
197 @property (nonatomic, copy, readonly) NSString *version;
198 
221 @property (nullable, nonatomic, strong, readonly) AGSExpiration *expiration;
222 
223 #pragma mark -
224 #pragma mark methods
225 
242 -(void)close;
243 
253 +(id<AGSCancelable>)unpackMobileMapPackageAtFileURL:(NSURL *)fileURL
254  outputDirectory:(NSURL*)outputDirectory
255  completion:(void(^)(NSError * __nullable error))completion;
256 
257 @end
258 
260 
280 +(id<AGSCancelable>)checkDirectReadSupportForMobileMapPackageAtFileURL:(NSURL*)fileURL
281  completion:(void(^)(BOOL isDirectReadSupported, NSError * __nullable error))completion ;
282 
283 @end
284 
285 
Definition: AGSMobileMapPackage.h:259
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:44
A base class for loadables.
Definition: AGSLoadableBase.h:45
A task to geocode and reverse-geocode addresses and places.
Definition: AGSLocatorTask.h:52
A map containing 2D geographic content.
Definition: AGSMap.h:68
A mobile map package.
Definition: AGSMobileMapPackage.h:84
NSURL * fileURL
Definition: AGSMobileMapPackage.h:176
AGSExpiration * expiration
Definition: AGSMobileMapPackage.h:221
AGSLocatorTask * locatorTask
Definition: AGSMobileMapPackage.h:158
NSArray< AGSMap * > * maps
Definition: AGSMobileMapPackage.h:171
NSString * version
Definition: AGSMobileMapPackage.h:197
AGSItem * item
Definition: AGSMobileMapPackage.h:147
A protocol exposed by operations that allow cancellation.
Definition: AGSCancelable.h:38