ArcGIS Runtime SDK for iOS: AGSPopupsViewController.h Source File
ArcGIS Runtime SDK for iOS  100.9
AGSPopupsViewController.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/AGSViewController.h>
22 #import <ArcGIS/AGSPopupAttachment.h>
23 
24 
25 
30 typedef NS_ENUM(NSInteger, AGSPopupsViewControllerContainerStyle) {
34 };
35 
40 typedef NS_ENUM(NSInteger, AGSPopupsViewControllerGeometryEditingStyle) {
43 };
44 
46 @class AGSPopupViewController;
47 @class AGSGeometry;
48 @class AGSGeometryBuilder;
49 @class AGSPopup;
51 @class AGSSketchEditor;
52 
67 @interface AGSPopupsViewController : AGSViewController
68 
69 #pragma mark -
70 #pragma mark initializers
71 
76 -(instancetype)initWithPopups:(nullable NSArray<AGSPopup*>*)popups;
77 
78 
83 +(instancetype)popupsViewControllerWithPopups:(nullable NSArray<AGSPopup*>*)popups;
84 
85 #pragma mark -
86 #pragma mark properties
87 
93 @property (nonatomic, weak, nullable) id<AGSPopupsViewControllerDelegate> delegate;
94 
99 @property (nonatomic, copy, nullable) NSArray<AGSPopup*> *popups;
100 
104 @property (nonatomic, assign, readonly) BOOL inEditingMode;
105 
111 @property (nonatomic, strong, readonly) AGSSketchEditor *currentSketchEditor;
112 
116 @property (nonatomic, strong, readonly, nullable) AGSPopup *currentPopup;
117 
121 @property (nonatomic, strong, readwrite) AGSPopupsViewControllerTheme *theme;
122 
126 @property (nonatomic, assign, readwrite) AGSPopupAttachmentSize defaultAttachmentSize;
127 
128 #pragma mark -
129 #pragma mark methods
130 
139 -(void)showAdditionalPopups:(NSArray<AGSPopup*> *)popups;
140 
145 
150 -(void)finishEditingCurrentPopupWithCompletion:(nullable void(^)(NSError *__nullable error))completion;
151 
156 
163 -(void)clearAllPopups;
164 
165 #pragma mark -
166 #pragma mark iPhone
167 
168 #if TARGET_OS_IPHONE
169 
175 -(instancetype)initWithPopups:(nullable NSArray<AGSPopup*> *)popups containerStyle:(AGSPopupsViewControllerContainerStyle)containerStyle;
176 
182 +(instancetype)popupsViewControllerWithPopups:(nullable NSArray<AGSPopup*> *)popups containerStyle:(AGSPopupsViewControllerContainerStyle)containerStyle;
183 
188 @property (nonatomic, strong, readonly, nullable) UIBarButtonItem *doneButton;
189 
195 @property (nonatomic, strong, readwrite, nullable) UIBarButtonItem *customDoneButton;
196 
201 @property (nonatomic, strong, readonly, nullable) UIBarButtonItem *actionButton;
202 
208 @property (nonatomic, strong, readwrite, nullable) UIBarButtonItem *customActionButton;
209 
214 
220 @property (nonatomic, strong, nullable) UIViewController *modalPresenter;
221 
222 #endif
223 
224 @end
225 
226 
A theme to configure the appearance of AGSPopupsViewController.
Definition: AGSPopupsViewControllerTheme.h:34
UIBarButtonItem * actionButton
Definition: AGSPopupsViewController.h:201
BOOL inEditingMode
Definition: AGSPopupsViewController.h:104
AGSPopupAttachmentSize defaultAttachmentSize
Definition: AGSPopupsViewController.h:126
Definition: AGSPopupsViewController.h:41
Defines common members for all specific types of geometry.
Definition: AGSGeometry.h:106
AGSSketchEditor * currentSketchEditor
Definition: AGSPopupsViewController.h:111
AGSPopupsViewControllerGeometryEditingStyle geometryEditingStyle
Definition: AGSPopupsViewController.h:213
A view controller for displaying popups.
Definition: AGSPopupsViewController.h:67
AGSPopupAttachmentSize
Definition: AGSPopupAttachment.h:61
Definition: AGSPopupsViewController.h:31
UIBarButtonItem * customActionButton
Definition: AGSPopupsViewController.h:208
A delegate of AGSPopupsViewController.
Definition: AGSPopupsViewControllerDelegate.h:50
Definition: AGSPopupsViewController.h:33
AGSPopupsViewControllerTheme * theme
Definition: AGSPopupsViewController.h:121
UIViewController * modalPresenter
Definition: AGSPopupsViewController.h:220
A Popup which displays a geo-element&#39;s information.
Definition: AGSPopup.h:35
id< AGSPopupsViewControllerDelegate > delegate
Definition: AGSPopupsViewController.h:93
UIBarButtonItem * doneButton
Definition: AGSPopupsViewController.h:188
AGSPopupsViewControllerContainerStyle
Definition: AGSPopupsViewController.h:30
UIBarButtonItem * customDoneButton
Definition: AGSPopupsViewController.h:195
AGSPopup * currentPopup
Definition: AGSPopupsViewController.h:116
Definition: AGSPopupsViewController.h:42
A builder to build geometries.
Definition: AGSGeometryBuilder.h:35
AGSPopupsViewControllerGeometryEditingStyle
Definition: AGSPopupsViewController.h:40
A class that allows the user to sketch geometries on the map.
Definition: AGSSketchEditor.h:68
Definition: AGSPopupsViewController.h:32