ArcGIS Runtime SDK for iOS: AGSPreplannedMapArea.h Source File
ArcGIS Runtime SDK for iOS  100.11
AGSPreplannedMapArea.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 
29 
38 typedef NS_ENUM(NSInteger, AGSPreplannedPackagingStatus) {
43 };
44 
45 @class AGSGeometry;
46 @class AGSPortalItem;
48 
49 @protocol AGSCancelable;
50  //Required for Globals API doc
52 
66 
67 #pragma mark -
68 #pragma mark initializers
69 
70 
71 
77 -(instancetype)initWithPortalItem:(AGSPortalItem *)portalItem;
78 
84 +(instancetype)preplannedMapAreaWithPortalItem:(AGSPortalItem *)portalItem;
85 
86 #pragma mark -
87 #pragma mark properties
88 
93 @property (nullable, nonatomic, strong, readonly) AGSGeometry *areaOfInterest;
94 
112 @property (nonatomic, assign, readonly) AGSPreplannedPackagingStatus packagingStatus;
113 
117 @property (nullable, nonatomic, strong, readonly) AGSPortalItem *portalItem;
118 
123 @property (nullable, nonatomic, strong, readonly) AGSOfflineMapUpdateCapabilities *updateCapabilities;
124 
125 #pragma mark -
126 #pragma mark methods
127 
133 -(id<AGSCancelable>)getContentItemsWithCompletion:(void(^)(NSArray<AGSPortalItem*> * __nullable contentItems, NSError * __nullable error))completion;
134 
135 
136 
137 @end
AGSPreplannedPackagingStatus
Definition: AGSPreplannedMapArea.h:38
@ AGSPreplannedPackagingStatusFailed
Definition: AGSPreplannedMapArea.h:41
@ AGSPreplannedPackagingStatusUnknown
Definition: AGSPreplannedMapArea.h:39
@ AGSPreplannedPackagingStatusComplete
Definition: AGSPreplannedMapArea.h:42
@ AGSPreplannedPackagingStatusProcessing
Definition: AGSPreplannedMapArea.h:40
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 preplanned map area.
Definition: AGSPreplannedMapArea.h:66
AGSPortalItem * portalItem
Definition: AGSPreplannedMapArea.h:117
AGSPreplannedPackagingStatus packagingStatus
Definition: AGSPreplannedMapArea.h:112
AGSOfflineMapUpdateCapabilities * updateCapabilities
Definition: AGSPreplannedMapArea.h:123
AGSGeometry * areaOfInterest
Definition: AGSPreplannedMapArea.h:93
A protocol exposed by operations that allow cancellation.
Definition: AGSCancelable.h:38