ArcGIS Runtime SDK for iOS: AGSServiceFeatureTable.h Source File
ArcGIS Runtime SDK for iOS  100.15
AGSServiceFeatureTable.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  //Required for Globals API doc
26 
27 #import <Foundation/Foundation.h>
28 #import <ArcGIS/AGSArcGISFeatureTable.h>
29 #import <ArcGIS/AGSRemoteResource.h>
30 #import <ArcGIS/AGSAPIKeyResource.h>
31 #import <ArcGIS/AGSCancelable.h>
32 
33 
34 
39 typedef NS_ENUM(NSInteger, AGSQueryFeatureFields) {
49 };
50 
52 @class AGSRelationshipInfo;
53 @class AGSItem;
55 
118 
119 #pragma mark -
120 #pragma mark initializers
121 
126 -(instancetype)initWithURL:(NSURL *)url;
127 
133  -(instancetype)initWithTable:(AGSServiceFeatureTable *)table
134  relationshipInfo:(AGSRelationshipInfo *)relationshipInfo;
135 
136 
137 
147 - (instancetype)initWithItem:(AGSItem *)item;
148 
158 + (instancetype)serviceFeatureTableWithItem:(AGSItem *)item;
159 
165 -(instancetype)initWithItem:(AGSItem*)item layerID:(NSInteger)layerID;
166 
172 +(instancetype)serviceFeatureTableWithURL:(NSURL*)URL;
173 
180 +(instancetype)serviceFeatureTableWithTable:(AGSServiceFeatureTable *)table
181  relationshipInfo:(AGSRelationshipInfo *)relationshipInfo;
182 
189 +(instancetype)serviceFeatureTableWithItem:(AGSItem*)item layerID:(NSInteger)layerID;
190 
191 #pragma mark -
192 #pragma mark properties
193 
202 @property (nonatomic, assign, readwrite) double bufferFactor;
203 
215 @property (nonatomic, copy, readwrite) NSString *definitionExpression;
216 
220 @property (nonatomic, assign, readwrite) AGSFeatureRequestMode featureRequestMode;
221 
225 @property (nonatomic, copy, readwrite) NSString *geodatabaseVersion;
226 
230 @property (nullable, nonatomic, strong, readonly) AGSItem *item;
231 
235 @property (nullable, nonatomic, strong, readonly) AGSServiceGeodatabase *serviceGeodatabase;
236 
237 #pragma mark -
238 #pragma mark methods
239 
266 -(id<AGSCancelable>)applyEditsWithCompletion:(nullable void(^)(NSArray<AGSFeatureEditResult*> *__nullable result, NSError *__nullable error))completion;
267 
271 -(void)clearCacheWithKeepLocalEdits:(BOOL)keepLocalEdits;
272 
291 -(id<AGSCancelable>)populateFromServiceWithParameters:(AGSQueryParameters *)parameters
292  clearCache:(BOOL)clearCache
293  outFields:(NSArray<NSString*> *)outFields
294  completion:(nullable void(^)(AGSFeatureQueryResult *__nullable result, NSError *__nullable error))completion;
295 
319 -(id<AGSCancelable>)queryFeaturesWithParameters:(AGSQueryParameters *)parameters
320  queryFeatureFields:(AGSQueryFeatureFields)queryFeatureFields
321  completion:(nullable void(^)(AGSFeatureQueryResult *__nullable result, NSError *__nullable error))completion;
322 
337 -(id<AGSCancelable>)queryRelatedFeaturesForFeature:(AGSArcGISFeature *)feature
338  parameters:(AGSRelatedQueryParameters *)parameters
339  queryFeatureFields:(AGSQueryFeatureFields)queryFeatureFields
340  completion:(void(^)(NSArray<AGSRelatedFeatureQueryResult*> *__nullable result, NSError *__nullable error))completion;
341 
368 -(id<AGSCancelable>)undoLocalEditsWithCompletion:(nullable void(^)(NSError *__nullable error))completion;
369 
381 -(id<AGSCancelable>)loadOrRefreshFeatures:(NSArray<AGSArcGISFeature*> *)features completion:(nullable void(^)(NSError *__nullable error))completion;
382 
383 @end
384 
385 
AGSFeatureRequestMode
Definition: AGSFeatureTable.h:40
AGSQueryFeatureFields
Definition: AGSServiceFeatureTable.h:39
@ AGSQueryFeatureFieldsIDsOnly
Definition: AGSServiceFeatureTable.h:40
@ AGSQueryFeatureFieldsLoadAll
Definition: AGSServiceFeatureTable.h:46
@ AGSQueryFeatureFieldsMinimum
Definition: AGSServiceFeatureTable.h:43
An AGSFeature object stored in an AGSArcGISFeatureTable object.
Definition: AGSArcGISFeature.h:61
An ArcGIS specific source for dataset containing geographic features or non-spatial records.
Definition: AGSArcGISFeatureTable.h:69
Information about the outcome of a feature edit operation.
Definition: AGSFeatureEditResult.h:39
Result of queries that return features.
Definition: AGSFeatureQueryResult.h:49
Object representing a unit of content.
Definition: AGSItem.h:43
Parameters to perform a query using AGSFeatureTable.
Definition: AGSQueryParameters.h:45
Information about a feature table's relationship.
Definition: AGSRelationshipInfo.h:72
A dataset from an individual layer or table in an ArcGIS map or feature service.
Definition: AGSServiceFeatureTable.h:117
AGSServiceGeodatabase * serviceGeodatabase
Definition: AGSServiceFeatureTable.h:235
AGSFeatureRequestMode featureRequestMode
Definition: AGSServiceFeatureTable.h:220
NSString * geodatabaseVersion
Definition: AGSServiceFeatureTable.h:225
double bufferFactor
Definition: AGSServiceFeatureTable.h:202
NSString * definitionExpression
Definition: AGSServiceFeatureTable.h:215
AGSItem * item
Definition: AGSServiceFeatureTable.h:230
A container for a collection of AGSServiceFeatureTable connected to a feature service.
Definition: AGSServiceGeodatabase.h:73
An interface for getting and setting the API key of an object.
Definition: AGSAPIKeyResource.h:36
A protocol exposed by operations that allow cancellation.
Definition: AGSCancelable.h:38
A protocol adopted by classes that access remote network resources that have the potential to be secu...
Definition: AGSRemoteResource.h:40