ArcGIS Runtime SDK for iOS: AGSPopupsViewController.h Source File
ArcGIS Runtime SDK for iOS  100.11
AGSPopupsViewController.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  //Required for Globals API doc
26 
27 #import <Foundation/Foundation.h>
28 #import <ArcGIS/AGSViewController.h>
29 #import <ArcGIS/AGSPopupAttachment.h>
30 
31 
32 
37 typedef NS_ENUM(NSInteger, AGSPopupsViewControllerContainerStyle) {
41 };
42 
47 typedef NS_ENUM(NSInteger, AGSPopupsViewControllerGeometryEditingStyle) {
50 };
51 
53 @class AGSPopupViewController;
54 @class AGSGeometry;
55 @class AGSGeometryBuilder;
56 @class AGSPopup;
58 @class AGSSketchEditor;
59 
75 
76 #pragma mark -
77 #pragma mark initializers
78 
83 -(instancetype)initWithPopups:(nullable NSArray<AGSPopup*>*)popups;
84 
85 
90 +(instancetype)popupsViewControllerWithPopups:(nullable NSArray<AGSPopup*>*)popups;
91 
92 #pragma mark -
93 #pragma mark properties
94 
100 @property (nonatomic, weak, nullable) id<AGSPopupsViewControllerDelegate> delegate;
101 
106 @property (nonatomic, copy, nullable) NSArray<AGSPopup*> *popups;
107 
111 @property (nonatomic, assign, readonly) BOOL inEditingMode;
112 
118 @property (nonatomic, strong, readonly) AGSSketchEditor *currentSketchEditor;
119 
123 @property (nonatomic, strong, readonly, nullable) AGSPopup *currentPopup;
124 
128 @property (nonatomic, strong, readwrite) AGSPopupsViewControllerTheme *theme;
129 
133 @property (nonatomic, assign, readwrite) AGSPopupAttachmentSize defaultAttachmentSize;
134 
135 #pragma mark -
136 #pragma mark methods
137 
146 -(void)showAdditionalPopups:(NSArray<AGSPopup*> *)popups;
147 
152 
157 -(void)finishEditingCurrentPopupWithCompletion:(nullable void(^)(NSError *__nullable error))completion;
158 
163 
170 -(void)clearAllPopups;
171 
177 -(instancetype)initWithPopups:(nullable NSArray<AGSPopup*> *)popups containerStyle:(AGSPopupsViewControllerContainerStyle)containerStyle;
178 
184 +(instancetype)popupsViewControllerWithPopups:(nullable NSArray<AGSPopup*> *)popups containerStyle:(AGSPopupsViewControllerContainerStyle)containerStyle;
185 
190 @property (nonatomic, strong, readonly, nullable) UIBarButtonItem *doneButton;
191 
197 @property (nonatomic, strong, readwrite, nullable) UIBarButtonItem *customDoneButton;
198 
203 @property (nonatomic, strong, readonly, nullable) UIBarButtonItem *actionButton;
204 
210 @property (nonatomic, strong, readwrite, nullable) UIBarButtonItem *customActionButton;
211 
216 
222 @property (nonatomic, strong, nullable) UIViewController *modalPresenter;
223 
224 @end
225 
226 
AGSPopupAttachmentSize
Definition: AGSPopupAttachment.h:68
AGSPopupsViewControllerGeometryEditingStyle
Definition: AGSPopupsViewController.h:47
@ AGSPopupsViewControllerGeometryEditingStyleInline
Definition: AGSPopupsViewController.h:49
@ AGSPopupsViewControllerGeometryEditingStyleToolbar
Definition: AGSPopupsViewController.h:48
AGSPopupsViewControllerContainerStyle
Definition: AGSPopupsViewController.h:37
@ AGSPopupsViewControllerContainerStyleCustom
Definition: AGSPopupsViewController.h:40
@ AGSPopupsViewControllerContainerStyleNavigationController
Definition: AGSPopupsViewController.h:38
@ AGSPopupsViewControllerContainerStyleNavigationBar
Definition: AGSPopupsViewController.h:39
#define AGSViewController
Definition: AGSViewController.h:32
A builder to build geometries.
Definition: AGSGeometryBuilder.h:43
Base class for all classes that represent geometric shapes.
Definition: AGSGeometry.h:121
A popup which displays a geo-element's information.
Definition: AGSPopup.h:43
A view controller for displaying popups.
Definition: AGSPopupsViewController.h:75
UIBarButtonItem * doneButton
Definition: AGSPopupsViewController.h:190
AGSSketchEditor * currentSketchEditor
Definition: AGSPopupsViewController.h:118
AGSPopupAttachmentSize defaultAttachmentSize
Definition: AGSPopupsViewController.h:133
UIViewController * modalPresenter
Definition: AGSPopupsViewController.h:222
NSArray< AGSPopup * > * popups
Definition: AGSPopupsViewController.h:106
id< AGSPopupsViewControllerDelegate > delegate
Definition: AGSPopupsViewController.h:100
UIBarButtonItem * customDoneButton
Definition: AGSPopupsViewController.h:197
AGSPopupsViewControllerTheme * theme
Definition: AGSPopupsViewController.h:128
BOOL inEditingMode
Definition: AGSPopupsViewController.h:111
UIBarButtonItem * actionButton
Definition: AGSPopupsViewController.h:203
AGSPopupsViewControllerGeometryEditingStyle geometryEditingStyle
Definition: AGSPopupsViewController.h:215
AGSPopup * currentPopup
Definition: AGSPopupsViewController.h:123
UIBarButtonItem * customActionButton
Definition: AGSPopupsViewController.h:210
A theme to configure the appearance of AGSPopupsViewController.
Definition: AGSPopupsViewControllerTheme.h:41
A class that allows the user to sketch geometries on the map.
Definition: AGSSketchEditor.h:75
A delegate of AGSPopupsViewController.
Definition: AGSPopupsViewControllerDelegate.h:56