ArcGIS Runtime SDK for iOS: AGSPopupAttachment.h Source File
ArcGIS Runtime SDK for iOS  100.15
AGSPopupAttachment.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  //Required for Globals API doc
26 
27 #import <Foundation/Foundation.h>
28 #import <ArcGIS/AGSLoadableBase.h>
29 #import <ArcGIS/AGSImage.h>
30 
31 
32 
37 typedef NS_ENUM(NSInteger, AGSImageScaleMode) {
41 };
42 
47 typedef NS_ENUM(NSInteger, AGSPopupAttachmentEditState) {
51 };
52 
57 typedef NS_ENUM(NSInteger, AGSPopupAttachmentType) {
62 };
63 
68 typedef NS_ENUM(NSInteger, AGSPopupAttachmentSize) {
74 };
75 
76 @class AGSAttachment;
77 
99 
100 #pragma mark -
101 #pragma mark initializers
102 
103 
104 #pragma mark -
105 #pragma mark properties
106 
110 @property (nullable, nonatomic, copy, readonly) NSString *name;
111 
115 @property (nullable, nonatomic, copy, readonly) NSString *contentType;
116 
120 @property (nonatomic, assign, readonly) NSInteger actualSizeInBytes;
121 
126 @property (nonatomic, assign, readonly) AGSPopupAttachmentEditState editState;
127 
131 @property (nullable, nonatomic, strong, readonly) AGSAttachment *featureAttachment;
132 
133 
137 @property (nonatomic, assign, readonly) AGSPopupAttachmentType type;
138 
142 @property (nonatomic, assign, readwrite) AGSPopupAttachmentSize preferredSize;
143 
147 @property (nonatomic, assign, readonly) BOOL supportsPreferredSize;
148 
152 @property (nonatomic, assign, readonly) BOOL isLocal;
153 
157 @property (nullable, nonatomic, strong, readonly) NSURL *fileURL;
158 
159 #pragma mark -
160 #pragma mark methods
161 
168 -(void)generateThumbnailWithSize:(float)size completion:(void(^)(AGSImage * _Nullable image))completion;
169 
176 -(void)generateThumbnailWithSize:(float)size scaleMode:(AGSImageScaleMode)scaleMode completion:(void(^)(AGSImage * _Nullable image))completion;
177 
183 -(void)sizeInBytesForPreferredSizeWithCompletion:(void(^)(NSInteger sizeInBytes))completion;
184 
189 -(void)fullDisplayImageWithCompletion:(void(^)(AGSImage * _Nullable image))completion;
190 
191 @end
192 
193 
#define AGSImage
Definition: AGSImage.h:34
AGSImageScaleMode
Definition: AGSPopupAttachment.h:37
@ AGSImageScaleModeAspectFit
Definition: AGSPopupAttachment.h:39
@ AGSImageScaleModeFill
Definition: AGSPopupAttachment.h:38
@ AGSImageScaleModeAspectFill
Definition: AGSPopupAttachment.h:40
AGSPopupAttachmentType
Definition: AGSPopupAttachment.h:57
@ AGSPopupAttachmentTypeVideo
Definition: AGSPopupAttachment.h:59
@ AGSPopupAttachmentTypeOther
Definition: AGSPopupAttachment.h:61
@ AGSPopupAttachmentTypeImage
Definition: AGSPopupAttachment.h:58
@ AGSPopupAttachmentTypeDocument
Definition: AGSPopupAttachment.h:60
AGSPopupAttachmentEditState
Definition: AGSPopupAttachment.h:47
@ AGSPopupAttachmentEditStateAdded
Definition: AGSPopupAttachment.h:49
@ AGSPopupAttachmentEditStateOriginal
Definition: AGSPopupAttachment.h:48
@ AGSPopupAttachmentEditStateDeleted
Definition: AGSPopupAttachment.h:50
AGSPopupAttachmentSize
Definition: AGSPopupAttachment.h:68
@ AGSPopupAttachmentSizeSmall
Definition: AGSPopupAttachment.h:70
@ AGSPopupAttachmentSizeExtraLarge
Definition: AGSPopupAttachment.h:73
@ AGSPopupAttachmentSizeMedium
Definition: AGSPopupAttachment.h:71
@ AGSPopupAttachmentSizeLarge
Definition: AGSPopupAttachment.h:72
@ AGSPopupAttachmentSizeActual
Definition: AGSPopupAttachment.h:69
Information about a feature attachment.
Definition: AGSAttachment.h:38
A base class for loadables.
Definition: AGSLoadableBase.h:45
An attachment belonging to a popup.
Definition: AGSPopupAttachment.h:99
NSURL * fileURL
Definition: AGSPopupAttachment.h:157
BOOL isLocal
Definition: AGSPopupAttachment.h:152
AGSPopupAttachmentEditState editState
Definition: AGSPopupAttachment.h:126
AGSPopupAttachmentSize preferredSize
Definition: AGSPopupAttachment.h:142
NSInteger actualSizeInBytes
Definition: AGSPopupAttachment.h:120
AGSAttachment * featureAttachment
Definition: AGSPopupAttachment.h:131
NSString * name
Definition: AGSPopupAttachment.h:110
NSString * contentType
Definition: AGSPopupAttachment.h:115
BOOL supportsPreferredSize
Definition: AGSPopupAttachment.h:147
AGSPopupAttachmentType type
Definition: AGSPopupAttachment.h:137