ArcGIS Runtime SDK for iOS: AGSPopupAttachmentManager.h Source File
ArcGIS Runtime SDK for iOS  100.9
AGSPopupAttachmentManager.h
Go to the documentation of this file.
1 /*
2  COPYRIGHT 1995-2020 ESRI
3 
4  TRADE SECRETS: ESRI PROPRIETARY AND CONFIDENTIAL
5  Unpublished material - all rights reserved under the
6  Copyright Laws of the United States and applicable international
7  laws, treaties, and conventions.
8 
9  For additional information, contact:
10  Environmental Systems Research Institute, Inc.
11  Attn: Contracts and Legal Services Department
12  380 New York Street
13  Redlands, California, 92373
14  USA
15 
16  email: contracts@esri.com
17  */
18  //Required for Globals API doc
20 
21 #import <Foundation/Foundation.h>
22 #import <ArcGIS/AGSImage.h>
23 #import <ArcGIS/AGSPopupAttachment.h>
24 
25 
26 
27 @class AGSArcGISFeature;
28 
29 @protocol AGSCancelable;
30 
39 @interface AGSPopupAttachmentManager : NSObject
40 
41 #pragma mark -
42 #pragma mark initializers
43 
44 -(instancetype)initWithFeature:(AGSArcGISFeature*)feature;
45 
46 #pragma mark -
47 #pragma mark properties
48 
49 #pragma mark -
50 #pragma mark methods
51 
57 -(id<AGSCancelable>)fetchAttachmentsWithCompletion:(nullable void(^)(NSArray<AGSPopupAttachment*>* __nullable attachments, NSError* __nullable error))completion;
58 
64 -(NSArray<AGSPopupAttachment*>*)attachments;
65 
73 
79 -(void)deleteAttachment:(AGSPopupAttachment*)attachment;
80 
89 -(nullable AGSPopupAttachment*)addAttachmentAsJPGWithImage:(AGSImage*)image name:(NSString*)name preferredSize:(AGSPopupAttachmentSize)preferredSize;
90 
100 -(AGSPopupAttachment*)addAttachmentWithData:(NSData*)data name:(NSString*)name contentType:(NSString*)contentType preferredSize:(AGSPopupAttachmentSize)preferredSize;
101 
102 
103 #if __has_include(<UIKit/UIImagePickerController.h>)
104 
112 -(void)addAttachmentWithUIImagePickerControllerInfoDictionary:(NSDictionary *)info
113  name:(NSString *)baseName
114  preferredSize:(AGSPopupAttachmentSize)preferredSize
115  completion:(void (^)(AGSPopupAttachment *attachment))completion;
116 #endif
117 
121 -(NSString*)basenameForNewAttachmentWithType:(AGSPopupAttachmentType)type;
122 
123 @end
124 
125 
An attachment belonging to a popup.
Definition: AGSPopupAttachment.h:91
AGSPopupAttachmentSize
Definition: AGSPopupAttachment.h:61
NSArray< AGSPopupAttachment * > * attachments()
Manages attachments belonging to a popup.
Definition: AGSPopupAttachmentManager.h:39
AGSPopupAttachmentType
Definition: AGSPopupAttachment.h:50
NSArray< AGSPopupAttachment * > * filteredAndSortedAttachments()
An AGSFeature stored in an AGSArcGISFeatureTable.
Definition: AGSArcGISFeature.h:51
A protocol exposed by operations that allow cancellation.
Definition: AGSCancelable.h:32