ArcGIS Runtime SDK for iOS: AGSPopupDefinition.h Source File
ArcGIS Runtime SDK for iOS  100.11
AGSPopupDefinition.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 @class AGSPopupMedia;
29 @class AGSPopupField;
31 @class AGSPopupExpression;
32 
33 @protocol AGSGeoElement;
34 @protocol AGSPopupSource;
35  //Required for Globals API doc
37 
49 
50 
51 #pragma mark -
52 #pragma mark initializers
53 
58 -(instancetype)initWithGeoElement:(id<AGSGeoElement>)geoElement;
59 
64 -(instancetype)initWithPopupSource:(id<AGSPopupSource>)popupSource;
65 
66 +(instancetype)popupDefinition;
67 
73 +(instancetype)popupDefinitionWithPopupSource:(id<AGSPopupSource>)popupSource;
74 
80 +(instancetype)popupDefinitionWithGeoElement:(id<AGSGeoElement>)geoElement;
81 
82 #pragma mark -
83 #pragma mark properties
84 
90 @property (nonatomic, copy, readwrite) NSString *title;
91 
98 @property (nonatomic, copy, readwrite) NSString *customDescription;
99 
103 @property (nonatomic, copy, readwrite) NSArray<AGSPopupExpression*> *expressions;
104 
110 @property (nonatomic, copy, readwrite) NSArray<AGSPopupField*> *fields;
111 
117 @property (nonatomic, copy, readwrite) NSArray<AGSPopupMedia*> *media;
118 
122 @property (nullable, nonatomic, strong, readwrite) AGSPopupRelatedFeaturesDefinition *relatedFeaturesDefinition;
123 
127 @property (nonatomic, assign) BOOL showAttachments;
128 
132 @property (nonatomic, assign) BOOL allowEdit;
133 
137 @property (nonatomic, assign) BOOL allowEditGeometry;
138 
142 @property (nonatomic, assign) BOOL allowDelete;
143 
147 @property (nonatomic, assign) BOOL showEditSummary;
148 
153 @property (nonatomic, assign) BOOL showRelatedRecords ;
154 
155 #pragma mark -
156 #pragma mark methods
157 
158 
159 @end
160 
Definition: AGSObject.h:28
A popup definition.
Definition: AGSPopupDefinition.h:49
BOOL showAttachments
Definition: AGSPopupDefinition.h:127
NSArray< AGSPopupMedia * > * media
Definition: AGSPopupDefinition.h:117
BOOL showEditSummary
Definition: AGSPopupDefinition.h:147
NSArray< AGSPopupField * > * fields
Definition: AGSPopupDefinition.h:110
BOOL allowDelete
Definition: AGSPopupDefinition.h:142
BOOL allowEdit
Definition: AGSPopupDefinition.h:132
NSArray< AGSPopupExpression * > * expressions
Definition: AGSPopupDefinition.h:103
NSString * customDescription
Definition: AGSPopupDefinition.h:98
AGSPopupRelatedFeaturesDefinition * relatedFeaturesDefinition
Definition: AGSPopupDefinition.h:122
BOOL showRelatedRecords
Definition: AGSPopupDefinition.h:153
instancetype popupDefinition()
BOOL allowEditGeometry
Definition: AGSPopupDefinition.h:137
NSString * title
Definition: AGSPopupDefinition.h:90
Arcade expression to display in a popup.
Definition: AGSPopupExpression.h:47
Information about a field in a popup.
Definition: AGSPopupField.h:51
Information about a single media in a popup.
Definition: AGSPopupMedia.h:53
An abstract representation of geographic entities on a map.
Definition: AGSGeoElement.h:43
A source for popups.
Definition: AGSPopupSource.h:40