ArcGIS Runtime SDK for iOS: AGSMobileScenePackage.h Source File
ArcGIS Runtime SDK for iOS  100.15
AGSMobileScenePackage.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 AGSScene;
31 @class AGSItem;
32 @class AGSExpiration;
33 
34 
35  //Required for Globals API doc
37 
80 
81 #pragma mark -
82 #pragma mark initializers
83 
84 
85 
91 -(instancetype)initWithFileURL:(NSURL *)fileURL;
92 
98 -(instancetype)initWithName:(NSString *)name;
99 
106 +(instancetype)mobileScenePackageWithFileURL:(NSURL *)fileURL;
107 
114 +(instancetype)mobileScenePackageWithName:(NSString *)name;
115 
116 #pragma mark -
117 #pragma mark properties
118 
135 @property (nullable, nonatomic, strong, readonly) AGSItem *item;
136 
145 @property (nullable, nonatomic, strong, readonly) AGSLocatorTask *locatorTask;
146 
150 @property (nonatomic, strong, readonly) NSURL *fileURL;
151 
162 @property (nonatomic, copy, readonly) NSArray<AGSScene*> *scenes;
163 
182 @property (nonatomic, copy, readonly) NSString *version;
183 
206 @property (nullable, nonatomic, strong, readonly) AGSExpiration *expiration;
207 
208 #pragma mark -
209 #pragma mark methods
210 
227 -(void)close;
228 
246 +(id<AGSCancelable>)unpackMobileScenePackageAtFileURL:(NSURL *)fileURL
247  outputDirectory:(NSURL*)outputDirectory
248  completion:(void(^)(NSError * __nullable error))completion;
249 
250 @end
251 
253 
273 +(id<AGSCancelable>)checkDirectReadSupportForMobileScenePackageAtFileURL:(NSURL*)fileURL
274  completion:(void(^)(BOOL isDirectReadSupported, NSError * __nullable error))completion ;
275 
276 @end
277 
278 
Definition: AGSMobileScenePackage.h:252
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 mobile scene package.
Definition: AGSMobileScenePackage.h:80
AGSItem * item
Definition: AGSMobileScenePackage.h:135
AGSLocatorTask * locatorTask
Definition: AGSMobileScenePackage.h:145
NSURL * fileURL
Definition: AGSMobileScenePackage.h:150
AGSExpiration * expiration
Definition: AGSMobileScenePackage.h:206
NSArray< AGSScene * > * scenes
Definition: AGSMobileScenePackage.h:162
NSString * version
Definition: AGSMobileScenePackage.h:182
A scene containing 3D geographic content.
Definition: AGSScene.h:63
A protocol exposed by operations that allow cancellation.
Definition: AGSCancelable.h:38