ArcGIS Runtime SDK for iOS: AGSFeatureCollection.h Source File
ArcGIS Runtime SDK for iOS  100.9
AGSFeatureCollection.h
Go to the documentation of this file.
1 /*
2  COPYRIGHT 1995-2020 ESRI
3 
4  TRADE SECRETS: ESRI PROPRIETARY AND CONFIDENTIAL
5  Unpublished material - all rights reserved under the
6  Copyright Laws of the United States and applicable international
7  laws, treaties, and conventions.
8 
9  For additional information, contact:
10  Environmental Systems Research Institute, Inc.
11  Attn: Contracts and Legal Services Department
12  380 New York Street
13  Redlands, California, 92373
14  USA
15 
16  email: contracts@esri.com
17  */
18 
19 #import <ArcGIS/AGSLoadableBase.h>
20 #import <ArcGIS/AGSJSONSerializable.h>
21 #import <ArcGIS/AGSImage.h>
22 
23 @class AGSItem;
25 @class AGSPortal;
26 @class AGSPortalFolder;
27 
28 @protocol AGSCancelable;
29  //Required for Globals API doc
31 
40 
41 
42 
43 #pragma mark -
44 #pragma mark initializers
45 
51 -(instancetype)initWithItem:(AGSItem*)item;
52 
58 -(instancetype)initWithFeatureCollectionTables:(NSArray<AGSFeatureCollectionTable*>*)featureCollectionTables;
59 
64 +(instancetype)featureCollection;
65 
71 +(instancetype)featureCollectionWithItem:(AGSItem*)item;
72 
78 +(instancetype)featureCollectionWithFeatureCollectionTables:(NSArray<AGSFeatureCollectionTable*>*)featureCollectionTables;
79 
80 #pragma mark -
81 #pragma mark properties
82 
86 @property (nullable, nonatomic, strong, readwrite) AGSItem *item;
87 
91 @property (nonatomic, strong, readonly) NSMutableArray<AGSFeatureCollectionTable*> *tables;
92 
93 #pragma mark -
94 #pragma mark methods
95 
96 #pragma mark - Save/SaveAs
97 
114 -(id<AGSCancelable>)saveAs:(NSString *)title
115  portal:(AGSPortal *)portal
116  tags:(NSArray<NSString*> *)tags
117  folder:(nullable AGSPortalFolder *)folder
118  itemDescription:(NSString*)itemDescription
119  thumbnail:(nullable AGSImage *)thumbnail
120  completion:(nullable void(^)(NSError* __nullable error))completion;
121 
132 -(id<AGSCancelable>)saveWithCompletion:(nullable void(^)(NSError* __nullable error))completion;
133 
134 
135 
136 @end
A base class for loadables.
Definition: AGSLoadableBase.h:37
NSMutableArray< AGSFeatureCollectionTable * > * tables
Definition: AGSFeatureCollection.h:91
An individual table that contains features belonging to a feature collection.
Definition: AGSFeatureCollectionTable.h:39
instancetype featureCollection()
A protocol to convert objects to and from JSON.
Definition: AGSJSONSerializable.h:32
Object representing a unit of content.
Definition: AGSItem.h:36
Represents a folder of content within the Portal or Organization.
Definition: AGSPortalFolder.h:31
A lightweight collection of features.
Definition: AGSFeatureCollection.h:39
An Object representing a Portal for ArcGIS.
Definition: AGSPortal.h:98
A protocol exposed by operations that allow cancellation.
Definition: AGSCancelable.h:32