ArcGIS Runtime SDK for iOS: AGSArcGISFeature.h Source File
ArcGIS Runtime SDK for iOS  100.15
AGSArcGISFeature.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/AGSFeature.h>
27 #import <ArcGIS/AGSLoadable.h>
28 #import <ArcGIS/AGSCancelable.h>
29 
30 @class AGSAttachment;
31 @class AGSFeatureSubtype;
32 @class AGSRelationshipInfo;
33  //Required for Globals API doc
35 
62 
63 
64 
65 #pragma mark -
66 #pragma mark initializers
67 
68 
69 
70 
71 #pragma mark -
72 #pragma mark properties
73 
77 @property (nonatomic, assign, readonly) BOOL canEditAttachments;
78 
82 @property (nonatomic, assign, readonly) BOOL canUpdateGeometry;
83 
84 #pragma mark -
85 #pragma mark methods
86 
92 -(BOOL)refreshObjectID ;
93 
105 -(id<AGSCancelable>)addAttachmentWithName:(NSString *)name
106  contentType:(NSString *)contentType
107  data:(NSData *)data
108  completion:(nullable void(^)(AGSAttachment *__nullable result, NSError *__nullable error))completion;
109 
119 -(id<AGSCancelable>)deleteAttachment:(AGSAttachment *)attachment
120  completion:(nullable void(^)(NSError *__nullable error))completion;
121 
131 -(id<AGSCancelable>)deleteAttachments:(NSArray<AGSAttachment*> *)attachments
132  completion:(nullable void(^)(NSError *__nullable error))completion;
133 
141 - (nullable AGSFeatureSubtype *)featureSubtype;
142 
149 -(id<AGSCancelable>)fetchAttachmentsWithCompletion:(nullable void(^)(NSArray<AGSAttachment*> *__nullable result, NSError *__nullable error))completion;
150 
163 -(id<AGSCancelable>)updateAttachment:(AGSAttachment *)attachment
164  name:(NSString *)name
165  contentType:(NSString *)contentType
166  data:(NSData*)data
167  completion:(nullable void(^)(NSError *__nullable error))completion;
168 
179 -(void)relateToFeature:(AGSArcGISFeature *)feature;
180 
192 -(void)relateToFeature:(AGSArcGISFeature *)feature relationshipInfo:(nullable AGSRelationshipInfo *)relationshipInfo;
193 
201 -(void)unrelateToFeature:(AGSArcGISFeature *)feature;
202 
203 
204 
205 @end
An AGSFeature object stored in an AGSArcGISFeatureTable object.
Definition: AGSArcGISFeature.h:61
BOOL canUpdateGeometry
Definition: AGSArcGISFeature.h:82
BOOL canEditAttachments
Definition: AGSArcGISFeature.h:77
nullable AGSFeatureSubtype * featureSubtype()
Information about a feature attachment.
Definition: AGSAttachment.h:38
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