ArcGIS Runtime SDK for iOS: AGSAttachment.h Source File
ArcGIS Runtime SDK for iOS  100.11
AGSAttachment.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/AGSObject.h>
27 
28 @protocol AGSCancelable;
29  //Required for Globals API doc
31 
39 
40 
41 
42 #pragma mark -
43 #pragma mark initializers
44 
45 
46 
47 #pragma mark -
48 #pragma mark properties
49 
53 @property (nonatomic, copy, readonly) NSString *contentType;
54 
58 @property (nonatomic, copy, readonly) NSString *name;
59 
63 @property (nonatomic, assign, readonly) NSInteger size;
64 
69 @property (nonatomic, assign, readonly) BOOL hasFetchedData;
70 
74 @property (nonatomic, assign, readonly) NSInteger attachmentID;
75 
76 #pragma mark -
77 #pragma mark methods
78 
84 -(id<AGSCancelable>)fetchDataWithCompletion:(nullable void(^)(NSData *__nullable result, NSError *__nullable error))completion;
85 
86 
87 
88 @end
Information about a feature attachment.
Definition: AGSAttachment.h:39
NSString * name
Definition: AGSAttachment.h:58
BOOL hasFetchedData
Definition: AGSAttachment.h:69
NSInteger size
Definition: AGSAttachment.h:63
NSString * contentType
Definition: AGSAttachment.h:53
NSInteger attachmentID
Definition: AGSAttachment.h:74
Definition: AGSObject.h:28
A protocol exposed by operations that allow cancellation.
Definition: AGSCancelable.h:38