ArcGIS Runtime SDK for iOS: AGSServiceFeatureTable.h Source File
ArcGIS Runtime SDK for iOS  100.11
AGSServiceFeatureTable.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  //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 
32 
33 
38 typedef NS_ENUM(NSInteger, AGSQueryFeatureFields) {
42 };
43 
45 @class AGSRelationshipInfo;
46 @class AGSItem;
48 
49 @protocol AGSCancelable;
50 
96 
97 #pragma mark -
98 #pragma mark initializers
99 
104 -(instancetype)initWithURL:(NSURL *)url;
105 
111  -(instancetype)initWithTable:(AGSServiceFeatureTable *)table
112  relationshipInfo:(AGSRelationshipInfo *)relationshipInfo;
113 
114 
115 
121 -(instancetype)initWithItem:(AGSItem*)item layerID:(NSInteger)layerID;
122 
128 +(instancetype)serviceFeatureTableWithURL:(NSURL*)URL;
129 
136 +(instancetype)serviceFeatureTableWithTable:(AGSServiceFeatureTable *)table
137  relationshipInfo:(AGSRelationshipInfo *)relationshipInfo;
138 
145 +(instancetype)serviceFeatureTableWithItem:(AGSItem*)item layerID:(NSInteger)layerID;
146 
147 #pragma mark -
148 #pragma mark properties
149 
157 @property (nonatomic, assign, readwrite) double bufferFactor;
158 
170 @property (nonatomic, copy, readwrite) NSString *definitionExpression;
171 
175 @property (nonatomic, assign, readwrite) AGSFeatureRequestMode featureRequestMode;
176 
180 @property (nonatomic, copy, readwrite) NSString *geodatabaseVersion;
181 
185 @property (nullable, nonatomic, strong, readonly) AGSItem *item;
186 
190 @property (nullable, nonatomic, strong, readonly) AGSServiceGeodatabase *serviceGeodatabase;
191 
192 #pragma mark -
193 #pragma mark methods
194 
203 -(id<AGSCancelable>)applyEditsWithCompletion:(nullable void(^)(NSArray<AGSFeatureEditResult*> *__nullable result, NSError *__nullable error))completion;
204 
208 -(void)clearCacheWithKeepLocalEdits:(BOOL)keepLocalEdits;
209 
221 -(id<AGSCancelable>)populateFromServiceWithParameters:(AGSQueryParameters *)parameters
222  clearCache:(BOOL)clearCache
223  outFields:(NSArray<NSString*> *)outFields
224  completion:(nullable void(^)(AGSFeatureQueryResult *__nullable result, NSError *__nullable error))completion;
225 
241 -(id<AGSCancelable>)queryFeaturesWithParameters:(AGSQueryParameters *)parameters
242  queryFeatureFields:(AGSQueryFeatureFields)queryFeatureFields
243  completion:(nullable void(^)(AGSFeatureQueryResult *__nullable result, NSError *__nullable error))completion;
244 
255 -(id<AGSCancelable>)queryRelatedFeaturesForFeature:(AGSArcGISFeature *)feature
256  parameters:(AGSRelatedQueryParameters *)parameters
257  queryFeatureFields:(AGSQueryFeatureFields)queryFeatureFields
258  completion:(void(^)(NSArray<AGSRelatedFeatureQueryResult*> *__nullable result, NSError *__nullable error))completion;
259 
265 -(id<AGSCancelable>)undoLocalEditsWithCompletion:(nullable void(^)(NSError *__nullable error))completion;
266 
276 -(id<AGSCancelable>)loadOrRefreshFeatures:(NSArray<AGSArcGISFeature*> *)features completion:(nullable void(^)(NSError *__nullable error))completion;
277 
278 @end
279 
280 
AGSFeatureRequestMode
Definition: AGSFeatureTable.h:39
AGSQueryFeatureFields
Definition: AGSServiceFeatureTable.h:38
@ AGSQueryFeatureFieldsIDsOnly
Definition: AGSServiceFeatureTable.h:39
@ AGSQueryFeatureFieldsLoadAll
Definition: AGSServiceFeatureTable.h:41
@ AGSQueryFeatureFieldsMinimum
Definition: AGSServiceFeatureTable.h:40
An AGSFeature object stored in an AGSArcGISFeatureTable object.
Definition: AGSArcGISFeature.h:62
An ArcGIS specific source for dataset containing geographic features or non-spatial records.
Definition: AGSArcGISFeatureTable.h:66
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:44
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:95
AGSServiceGeodatabase * serviceGeodatabase
Definition: AGSServiceFeatureTable.h:190
AGSFeatureRequestMode featureRequestMode
Definition: AGSServiceFeatureTable.h:175
NSString * geodatabaseVersion
Definition: AGSServiceFeatureTable.h:180
double bufferFactor
Definition: AGSServiceFeatureTable.h:157
NSString * definitionExpression
Definition: AGSServiceFeatureTable.h:170
AGSItem * item
Definition: AGSServiceFeatureTable.h:185
A container for a collection of AGSServiceFeatureTable connected to a feature service.
Definition: AGSServiceGeodatabase.h:93
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