ArcGIS Runtime SDK for iOS: AGSArcGISFeature.h Source File
ArcGIS Runtime SDK for iOS  100.11
AGSArcGISFeature.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/AGSFeature.h>
27 #import <ArcGIS/AGSLoadable.h>
28 
29 @class AGSAttachment;
30 @class AGSFeatureSubtype;
31 @class AGSRelationshipInfo;
32 
33 @protocol AGSCancelable;
34  //Required for Globals API doc
36 
63 
64 
65 
66 #pragma mark -
67 #pragma mark initializers
68 
69 
70 
71 
72 #pragma mark -
73 #pragma mark properties
74 
78 @property (nonatomic, assign, readonly) BOOL canEditAttachments;
79 
83 @property (nonatomic, assign, readonly) BOOL canUpdateGeometry;
84 
85 #pragma mark -
86 #pragma mark methods
87 
93 -(BOOL)refreshObjectID ;
94 
106 -(id<AGSCancelable>)addAttachmentWithName:(NSString *)name
107  contentType:(NSString *)contentType
108  data:(NSData *)data
109  completion:(nullable void(^)(AGSAttachment *__nullable result, NSError *__nullable error))completion;
110 
120 -(id<AGSCancelable>)deleteAttachment:(AGSAttachment *)attachment
121  completion:(nullable void(^)(NSError *__nullable error))completion;
122 
132 -(id<AGSCancelable>)deleteAttachments:(NSArray<AGSAttachment*> *)attachments
133  completion:(nullable void(^)(NSError *__nullable error))completion;
134 
142 - (nullable AGSFeatureSubtype *)featureSubtype;
143 
151 -(id<AGSCancelable>)fetchAttachmentsWithCompletion:(nullable void(^)(NSArray<AGSAttachment*> *__nullable result, NSError *__nullable error))completion;
152 
165 -(id<AGSCancelable>)updateAttachment:(AGSAttachment *)attachment
166  name:(NSString *)name
167  contentType:(NSString *)contentType
168  data:(NSData*)data
169  completion:(nullable void(^)(NSError *__nullable error))completion;
170 
181 -(void)relateToFeature:(AGSArcGISFeature *)feature;
182 
194 -(void)relateToFeature:(AGSArcGISFeature *)feature relationshipInfo:(nullable AGSRelationshipInfo *)relationshipInfo;
195 
203 -(void)unrelateToFeature:(AGSArcGISFeature *)feature;
204 
205 
206 
207 @end
An AGSFeature object stored in an AGSArcGISFeatureTable object.
Definition: AGSArcGISFeature.h:62
BOOL canUpdateGeometry
Definition: AGSArcGISFeature.h:83
BOOL canEditAttachments
Definition: AGSArcGISFeature.h:78
nullable AGSFeatureSubtype * featureSubtype()
Information about a feature attachment.
Definition: AGSAttachment.h:39
A representation of a real-world object on a map.
Definition: AGSFeature.h:47
Encapsulates properties of types of features in a feature layer.
Definition: AGSFeatureSubtype.h:41
Information about a feature table's relationship.
Definition: AGSRelationshipInfo.h:72
A protocol exposed by operations that allow cancellation.
Definition: AGSCancelable.h:38
A protocol adopted by classes that can load data asynchronously.
Definition: AGSLoadable.h:72