ArcGIS Runtime SDK for iOS: AGSFeatureCollection.h Source File
ArcGIS Runtime SDK for iOS  100.15
AGSFeatureCollection.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/AGSJSONSerializable.h>
28 #import <ArcGIS/AGSImage.h>
29 #import <ArcGIS/AGSCancelable.h>
30 
31 @class AGSItem;
33 @class AGSPortal;
34 @class AGSPortalFolder;
35  //Required for Globals API doc
37 
46 
47 
48 
49 #pragma mark -
50 #pragma mark initializers
51 
57 -(instancetype)initWithItem:(AGSItem*)item;
58 
64 -(instancetype)initWithFeatureCollectionTables:(NSArray<AGSFeatureCollectionTable*>*)featureCollectionTables;
65 
70 +(instancetype)featureCollection;
71 
77 +(instancetype)featureCollectionWithItem:(AGSItem*)item;
78 
84 +(instancetype)featureCollectionWithFeatureCollectionTables:(NSArray<AGSFeatureCollectionTable*>*)featureCollectionTables;
85 
86 #pragma mark -
87 #pragma mark properties
88 
92 @property (nullable, nonatomic, strong, readwrite) AGSItem *item;
93 
97 @property (nonatomic, strong, readonly) NSMutableArray<AGSFeatureCollectionTable*> *tables;
98 
99 #pragma mark -
100 #pragma mark methods
101 
102 #pragma mark - Save/SaveAs
103 
120 -(id<AGSCancelable>)saveAs:(NSString *)title
121  portal:(AGSPortal *)portal
122  tags:(NSArray<NSString*> *)tags
123  folder:(nullable AGSPortalFolder *)folder
124  itemDescription:(NSString*)itemDescription
125  thumbnail:(nullable AGSImage *)thumbnail
126  completion:(nullable void(^)(NSError* __nullable error))completion;
127 
138 -(id<AGSCancelable>)saveWithCompletion:(nullable void(^)(NSError* __nullable error))completion;
139 
140 
141 
142 @end
#define AGSImage
Definition: AGSImage.h:34
A lightweight collection of features.
Definition: AGSFeatureCollection.h:45
AGSItem * item
Definition: AGSFeatureCollection.h:92
instancetype featureCollection()
NSMutableArray< AGSFeatureCollectionTable * > * tables
Definition: AGSFeatureCollection.h:97
An individual table that contains features belonging to a feature collection.
Definition: AGSFeatureCollectionTable.h:46
Object representing a unit of content.
Definition: AGSItem.h:43
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:98
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