ArcGIS Runtime SDK for iOS: AGSMobileScenePackage.h Source File
ArcGIS Runtime SDK for iOS  100.11
AGSMobileScenePackage.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 AGSScene;
30 @class AGSItem;
31 @class AGSExpiration;
32 
33 @protocol AGSCancelable;
34 
35 
36  //Required for Globals API doc
38 
81 
82 #pragma mark -
83 #pragma mark initializers
84 
85 
86 
92 -(instancetype)initWithFileURL:(NSURL *)fileURL;
93 
99 -(instancetype)initWithName:(NSString *)name;
100 
107 +(instancetype)mobileScenePackageWithFileURL:(NSURL *)fileURL;
108 
115 +(instancetype)mobileScenePackageWithName:(NSString *)name;
116 
117 #pragma mark -
118 #pragma mark properties
119 
136 @property (nullable, nonatomic, strong, readonly) AGSItem *item;
137 
146 @property (nullable, nonatomic, strong, readonly) AGSLocatorTask *locatorTask;
147 
151 @property (nonatomic, strong, readonly) NSURL *fileURL;
152 
163 @property (nonatomic, copy, readonly) NSArray<AGSScene*> *scenes;
164 
183 @property (nonatomic, copy, readonly) NSString *version;
184 
207 @property (nullable, nonatomic, strong, readonly) AGSExpiration *expiration;
208 
209 #pragma mark -
210 #pragma mark methods
211 
228 -(void)close;
229 
247 +(id<AGSCancelable>)unpackMobileScenePackageAtFileURL:(NSURL *)fileURL
248  outputDirectory:(NSURL*)outputDirectory
249  completion:(void(^)(NSError * __nullable error))completion;
250 
251 @end
252 
254 
274 +(id<AGSCancelable>)checkDirectReadSupportForMobileScenePackageAtFileURL:(NSURL*)fileURL
275  completion:(void(^)(BOOL isDirectReadSupported, NSError * __nullable error))completion ;
276 
277 @end
278 
279 
Definition: AGSMobileScenePackage.h:253
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 mobile scene package.
Definition: AGSMobileScenePackage.h:81
AGSItem * item
Definition: AGSMobileScenePackage.h:136
AGSLocatorTask * locatorTask
Definition: AGSMobileScenePackage.h:146
NSURL * fileURL
Definition: AGSMobileScenePackage.h:151
AGSExpiration * expiration
Definition: AGSMobileScenePackage.h:207
NSArray< AGSScene * > * scenes
Definition: AGSMobileScenePackage.h:163
NSString * version
Definition: AGSMobileScenePackage.h:183
A scene containing 3D geographic content.
Definition: AGSScene.h:69
A protocol exposed by operations that allow cancellation.
Definition: AGSCancelable.h:38