ArcGIS Runtime SDK for iOS: AGSFeatureCollection.h Source File
ArcGIS Runtime SDK for iOS  100.11
AGSFeatureCollection.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 #import <ArcGIS/AGSJSONSerializable.h>
28 #import <ArcGIS/AGSImage.h>
29 
30 @class AGSItem;
32 @class AGSPortal;
33 @class AGSPortalFolder;
34 
35 @protocol AGSCancelable;
36  //Required for Globals API doc
38 
47 
48 
49 
50 #pragma mark -
51 #pragma mark initializers
52 
58 -(instancetype)initWithItem:(AGSItem*)item;
59 
65 -(instancetype)initWithFeatureCollectionTables:(NSArray<AGSFeatureCollectionTable*>*)featureCollectionTables;
66 
71 +(instancetype)featureCollection;
72 
78 +(instancetype)featureCollectionWithItem:(AGSItem*)item;
79 
85 +(instancetype)featureCollectionWithFeatureCollectionTables:(NSArray<AGSFeatureCollectionTable*>*)featureCollectionTables;
86 
87 #pragma mark -
88 #pragma mark properties
89 
93 @property (nullable, nonatomic, strong, readwrite) AGSItem *item;
94 
98 @property (nonatomic, strong, readonly) NSMutableArray<AGSFeatureCollectionTable*> *tables;
99 
100 #pragma mark -
101 #pragma mark methods
102 
103 #pragma mark - Save/SaveAs
104 
121 -(id<AGSCancelable>)saveAs:(NSString *)title
122  portal:(AGSPortal *)portal
123  tags:(NSArray<NSString*> *)tags
124  folder:(nullable AGSPortalFolder *)folder
125  itemDescription:(NSString*)itemDescription
126  thumbnail:(nullable AGSImage *)thumbnail
127  completion:(nullable void(^)(NSError* __nullable error))completion;
128 
139 -(id<AGSCancelable>)saveWithCompletion:(nullable void(^)(NSError* __nullable error))completion;
140 
141 
142 
143 @end
#define AGSImage
Definition: AGSImage.h:34
A lightweight collection of features.
Definition: AGSFeatureCollection.h:46
AGSItem * item
Definition: AGSFeatureCollection.h:93
instancetype featureCollection()
NSMutableArray< AGSFeatureCollectionTable * > * tables
Definition: AGSFeatureCollection.h:98
An individual table that contains features belonging to a feature collection.
Definition: AGSFeatureCollectionTable.h:46
Object representing a unit of content.
Definition: AGSItem.h:44
A base class for loadables.
Definition: AGSLoadableBase.h:45
Represents a folder of content within the Portal or Organization.
Definition: AGSPortalFolder.h:38
An Object representing a Portal for ArcGIS.
Definition: AGSPortal.h:105
A protocol exposed by operations that allow cancellation.
Definition: AGSCancelable.h:38
A protocol to convert objects to and from JSON.
Definition: AGSJSONSerializable.h:38