ArcGIS Runtime SDK for iOS: AGSPopupAttachment.h Source File
ArcGIS Runtime SDK for iOS  100.9
AGSPopupAttachment.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 <ArcGIS/AGSLoadableBase.h>
22 #import <ArcGIS/AGSImage.h>
23 
24 
25 
30 typedef NS_ENUM(NSInteger, AGSImageScaleMode) {
34 };
35 
40 typedef NS_ENUM(NSInteger, AGSPopupAttachmentEditState) {
44 };
45 
50 typedef NS_ENUM(NSInteger, AGSPopupAttachmentType) {
55 };
56 
61 typedef NS_ENUM(NSInteger, AGSPopupAttachmentSize) {
67 };
68 
69 @class AGSAttachment;
70 
92 
93 #pragma mark -
94 #pragma mark initializers
95 
96 
97 #pragma mark -
98 #pragma mark properties
99 
103 @property (nullable, nonatomic, copy, readonly) NSString *name;
104 
108 @property (nullable, nonatomic, copy, readonly) NSString *contentType;
109 
113 @property (nonatomic, assign, readonly) NSInteger actualSizeInBytes;
114 
119 @property (nonatomic, assign, readonly) AGSPopupAttachmentEditState editState;
120 
124 @property (nullable, nonatomic, strong, readonly) AGSAttachment *featureAttachment;
125 
126 
130 @property (nonatomic, assign, readonly) AGSPopupAttachmentType type;
131 
135 @property (nonatomic, assign, readwrite) AGSPopupAttachmentSize preferredSize;
136 
140 @property (nonatomic, assign, readonly) BOOL supportsPreferredSize;
141 
145 @property (nonatomic, assign, readonly) BOOL isLocal;
146 
150 @property (nullable, nonatomic, strong, readonly) NSURL *fileURL;
151 
152 #pragma mark -
153 #pragma mark methods
154 
161 -(void)generateThumbnailWithSize:(float)size completion:(void(^)(AGSImage * _Nullable image))completion;
162 
169 -(void)generateThumbnailWithSize:(float)size scaleMode:(AGSImageScaleMode)scaleMode completion:(void(^)(AGSImage * _Nullable image))completion;
170 
176 -(void)sizeInBytesForPreferredSizeWithCompletion:(void(^)(NSInteger sizeInBytes))completion;
177 
178 #if TARGET_OS_IPHONE
179 
184 -(void)fullDisplayImageWithCompletion:(void(^)(AGSImage * _Nullable image))completion;
185 
186 #endif
187 
188 @end
189 
190 
An attachment belonging to a popup.
Definition: AGSPopupAttachment.h:91
AGSAttachment * featureAttachment
Definition: AGSPopupAttachment.h:124
AGSPopupAttachmentType type
Definition: AGSPopupAttachment.h:130
A base class for loadables.
Definition: AGSLoadableBase.h:37
Definition: AGSPopupAttachment.h:66
Definition: AGSPopupAttachment.h:54
Definition: AGSPopupAttachment.h:52
NSString * name
Definition: AGSPopupAttachment.h:103
Definition: AGSPopupAttachment.h:41
Information about a feature attachment.
Definition: AGSAttachment.h:31
AGSPopupAttachmentSize
Definition: AGSPopupAttachment.h:61
Definition: AGSPopupAttachment.h:43
Definition: AGSPopupAttachment.h:42
BOOL isLocal
Definition: AGSPopupAttachment.h:145
Definition: AGSPopupAttachment.h:62
BOOL supportsPreferredSize
Definition: AGSPopupAttachment.h:140
Definition: AGSPopupAttachment.h:33
AGSPopupAttachmentType
Definition: AGSPopupAttachment.h:50
AGSPopupAttachmentEditState
Definition: AGSPopupAttachment.h:40
AGSPopupAttachmentEditState editState
Definition: AGSPopupAttachment.h:119
Definition: AGSPopupAttachment.h:31
Definition: AGSPopupAttachment.h:63
Definition: AGSPopupAttachment.h:51
AGSPopupAttachmentSize preferredSize
Definition: AGSPopupAttachment.h:135
NSString * contentType
Definition: AGSPopupAttachment.h:108
Definition: AGSPopupAttachment.h:32
NSURL * fileURL
Definition: AGSPopupAttachment.h:150
AGSImageScaleMode
Definition: AGSPopupAttachment.h:30
NSInteger actualSizeInBytes
Definition: AGSPopupAttachment.h:113
Definition: AGSPopupAttachment.h:53
Definition: AGSPopupAttachment.h:64
Definition: AGSPopupAttachment.h:65