ArcGIS Runtime SDK for iOS: AGSPopup.h Source File
ArcGIS Runtime SDK for iOS  100.9
AGSPopup.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 
19 #import <ArcGIS/AGSObject.h>
20 
21 @class AGSPopupDefinition;
22 @class AGSPopupField;
23 @class AGSSymbol;
25 @protocol AGSGeoElement;
26 @protocol AGSCancelable;
27  //Required for Globals API doc
29 
35 @interface AGSPopup : AGSObject
36 
37 
38 
39 #pragma mark -
40 #pragma mark initializers
41 
42 
43 
51 -(instancetype)initWithGeoElement:(id<AGSGeoElement>)geoElement popupDefinition:(nullable AGSPopupDefinition*)popupDefinition;
52 
58 -(instancetype)initWithGeoElement:(id<AGSGeoElement>)geoElement;
59 
67 +(instancetype)popupWithGeoElement:(id<AGSGeoElement>)geoElement popupDefinition:(nullable AGSPopupDefinition*)popupDefinition;
68 
74 +(instancetype)popupWithGeoElement:(id<AGSGeoElement>)geoElement;
75 
76 #pragma mark -
77 #pragma mark properties
78 
79 
83 @property (nonatomic, strong, readonly) AGSPopupDefinition *popupDefinition;
84 
88 @property (nonatomic, strong, readonly) id<AGSGeoElement> geoElement;
89 
93 @property (nullable, nonatomic, copy, readonly) NSString *title;
94 
98 @property (nullable, nonatomic, strong, readonly) AGSSymbol *symbol;
99 
100 
101 #pragma mark -
102 #pragma mark methods
103 
114 - (id<AGSCancelable>)evaluateExpressionsWithCompletion:(void(^)(NSArray<AGSPopupExpressionEvaluation *> * __nullable results, NSError * __nullable error))completion;
115 
128 -(NSString*)formattedValueForField:(AGSPopupField*)popupField;
129 
140 -(nullable NSString*)stringForTemplatedString:(NSString*)templatedString;
141 
142 
143 @end
A symbol used to display a graphic or a feature.
Definition: AGSSymbol.h:51
NSString * title
Definition: AGSPopup.h:93
A popup definition.
Definition: AGSPopupDefinition.h:41
An object that represents the result of an attempt to evaluate popup expression.
Definition: AGSPopupExpressionEvaluation.h:31
AGSSymbol * symbol
Definition: AGSPopup.h:98
A Popup which displays a geo-element&#39;s information.
Definition: AGSPopup.h:35
Definition: AGSObject.h:21
An abstract representation of geographic entities on a map.
Definition: AGSGeoElement.h:37
Information about a field in a popup.
Definition: AGSPopupField.h:43
A protocol exposed by operations that allow cancellation.
Definition: AGSCancelable.h:32