ArcGIS Runtime SDK for iOS: AGSPreplannedMapArea.h Source File
ArcGIS Runtime SDK for iOS  100.15
AGSPreplannedMapArea.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 
30 
39 typedef NS_ENUM(NSInteger, AGSPreplannedPackagingStatus) {
44 };
45 
46 @class AGSGeometry;
47 @class AGSPortalItem;
49  //Required for Globals API doc
51 
69 
70 #pragma mark -
71 #pragma mark initializers
72 
73 
74 
79 -(instancetype)initWithPortalItem:(AGSPortalItem *)portalItem;
80 
86 +(instancetype)preplannedMapAreaWithPortalItem:(AGSPortalItem *)portalItem;
87 
88 #pragma mark -
89 #pragma mark properties
90 
96 @property (nullable, nonatomic, strong, readonly) AGSGeometry *areaOfInterest;
97 
103 @property (nonatomic, copy, readonly) NSArray<AGSPortalItem *> *packageItems;
104 
128 @property (nonatomic, assign, readonly) AGSPreplannedPackagingStatus packagingStatus;
129 
133 @property (nullable, nonatomic, strong, readonly) AGSPortalItem *portalItem;
134 
175 @property (nullable, nonatomic, strong, readonly) AGSOfflineMapUpdateCapabilities *updateCapabilities;
176 
177 #pragma mark -
178 #pragma mark methods
179 
180 @end
181 
183 
193 -(id<AGSCancelable>)getContentItemsWithCompletion:(void(^)(NSArray<AGSPortalItem*> * __nullable contentItems, NSError * __nullable error))completion ;
194 
195 @end
196 
197 
AGSPreplannedPackagingStatus
Definition: AGSPreplannedMapArea.h:39
@ AGSPreplannedPackagingStatusFailed
Definition: AGSPreplannedMapArea.h:42
@ AGSPreplannedPackagingStatusUnknown
Definition: AGSPreplannedMapArea.h:40
@ AGSPreplannedPackagingStatusComplete
Definition: AGSPreplannedMapArea.h:43
@ AGSPreplannedPackagingStatusProcessing
Definition: AGSPreplannedMapArea.h:41
Definition: AGSPreplannedMapArea.h:182
Base class for all classes that represent geometric shapes.
Definition: AGSGeometry.h:121
A base class for loadables.
Definition: AGSLoadableBase.h:45
Describes supported methods for obtaining updates for an offline map.
Definition: AGSOfflineMapUpdateCapabilities.h:38
Object representing a unit of content in an ArcGIS portal.
Definition: AGSPortalItem.h:93
Represents an individual offline map area.
Definition: AGSPreplannedMapArea.h:69
AGSPortalItem * portalItem
Definition: AGSPreplannedMapArea.h:133
NSArray< AGSPortalItem * > * packageItems
Definition: AGSPreplannedMapArea.h:103
AGSPreplannedPackagingStatus packagingStatus
Definition: AGSPreplannedMapArea.h:128
AGSOfflineMapUpdateCapabilities * updateCapabilities
Definition: AGSPreplannedMapArea.h:175
AGSGeometry * areaOfInterest
Definition: AGSPreplannedMapArea.h:96
A protocol exposed by operations that allow cancellation.
Definition: AGSCancelable.h:38