ArcGIS Runtime SDK for iOS
100.15
|
A view controller for displaying popups.
Instances of this class represent a view controller that provides the basic user interface (UI) and behavior for displaying and editing information about graphics in a popup. It is a container and manages a number of view controllers behind the scenes, each of which is designed for a specific purpose, such as editing an attribute, displaying media, managing attachments, etc. It manages transitions between these view controllers and displays the relevant one depending upon what the user intends to do.
NSPhotoLibraryUsageDescription
and NSCameraUsageDescription
keys to permit this functionality. Instance Methods | |
(void) | - cancelEditingCurrentPopup |
(void) | - clearAllPopups |
(void) | - finishEditingCurrentPopupWithCompletion: |
(instancetype) | - initWithPopups: |
(instancetype) | - initWithPopups:containerStyle: |
(void) | - showAdditionalPopups: |
(void) | - startEditingCurrentPopup |
Class Methods | |
(instancetype) | + popupsViewControllerWithPopups: |
(instancetype) | + popupsViewControllerWithPopups:containerStyle: |
Properties | |
UIBarButtonItem * | actionButton |
AGSPopup * | currentPopup |
AGSSketchEditor * | currentSketchEditor |
UIBarButtonItem * | customActionButton |
UIBarButtonItem * | customDoneButton |
AGSPopupAttachmentSize | defaultAttachmentSize |
id< AGSPopupsViewControllerDelegate > | delegate |
UIBarButtonItem * | doneButton |
AGSPopupsViewControllerGeometryEditingStyle | geometryEditingStyle |
BOOL | inEditingMode |
UIViewController * | modalPresenter |
NSArray< AGSPopup * > * | popups |
AGSPopupsViewControllerTheme * | theme |
- (void) cancelEditingCurrentPopup |
Cancels the editing process for the currently shown popup.
- (void) clearAllPopups |
Clears all the popups currently being shown. This is useful if you want to reuse an existing popups container to display an entirely new set of popups. That way, the popups container doesn't have to reload from a NIB everytime it is shown.
- (void) finishEditingCurrentPopupWithCompletion: | (nullable void(^)(NSError *__nullable error)) | completion |
Exit editing mode for the currently shown popup.
completion | block that is invoked when the operation completes. The error argument is populated if a problem is encountered (for example, if one of the feature's attribute values does not satisfy its constraints) in which case the editing mode is not ended. |
- (instancetype) initWithPopups: | (nullable NSArray< AGSPopup * > *) | popups |
Initializes an AGSPopupsViewController.
popups | An array of AGSPopup objects representing the popups to be displayed |
- (instancetype) initWithPopups: | (nullable NSArray< AGSPopup * > *) | popups | |
containerStyle: | (AGSPopupsViewControllerContainerStyle) | containerStyle | |
Initializes an AGSPopupsViewController.
popups | An array of AGSPopup objects representing the popups to be displayed |
containerStyle | specifies how the popups view controller will be displayed in its container. See AGSPopupsViewControllerContainerStyle |
+ (instancetype) popupsViewControllerWithPopups: | (nullable NSArray< AGSPopup * > *) | popups |
Initializes an AGSPopupsViewController.
popups | An array of AGSPopup objects representing the popups to be displayed |
+ (instancetype) popupsViewControllerWithPopups: | (nullable NSArray< AGSPopup * > *) | popups | |
containerStyle: | (AGSPopupsViewControllerContainerStyle) | containerStyle | |
Initializes an AGSPopupsViewController.
popups | An array of AGSPopup objects representing the popups to be displayed |
containerStyle | specifies how the popups view controller will be displayed in its container. See AGSPopupsViewControllerContainerStyle |
- (void) showAdditionalPopups: | (NSArray< AGSPopup * > *) | popups |
Update the view controller to display additional popups. This is useful when the view controller is already displaying some popups, but you then want to display additional popups that were retrieved in the background, for example, as part of a query/identify operation.
popups | An array of AGSPopup objects representing the additional popups to be displayed |
- (void) startEditingCurrentPopup |
Start editing mode for the currently shown popup.
|
readnonatomicstrong |
The current button that appears on the right side of the Navigation Bar when the popup is in viewing mode (not editing).
|
readnonatomicstrong |
The current popup that is being viewed.
|
readnonatomicstrong |
When in edit mode and geometry editing is allowed, this property returns the sketchEditor for editing the popup's geometry. This is the sketchEditor you passed to the AGSPopupsViewController
in the popupsViewController:sketchEditorForPopup:
delegate method. When editing is finished, the geometry of the sketch editor will be set on the current popup's graphic.
|
readwritenonatomicstrong |
You can replace the button that appears on the right side of the Navigation Bar with a custom button through this property. This only applies to when the popup is in viewing mode (not editing).
|
readwritenonatomicstrong |
You can replace the button that appears on the left side of the Navigation Bar with a custom button through this property. This only applies to when the popup is in viewing mode (not editing).
|
readwritenonatomicassign |
The default size that new attachments created and committed to a feature will have.
|
readwritenonatomicweak |
The delegate to be notified when a user interacts with the popups or edits graphics related to the popups. The delegate class must adopt the AGSPopupsViewControllerDelegate
protocol.
|
readnonatomicstrong |
The current done button that appears on the left side of the Navigation Bar when the popup is in viewing mode (not editing).
|
readwritenonatomicassign |
The style that is used for editing.
|
readnonatomicassign |
Indicates whether the view controller is in the process of editing a feature.
|
readwritenonatomicstrong |
The UIViewController that should be used for presenting modal view controllers from within this AGSPopupsViewController. This is useful when using this view controller as a standalone object (for example, in a custom callout or a custom view) and when it's not part of a view controller hierarchy.
|
readwritenonatomiccopy |
The popups to be displayed.
|
readwritenonatomicstrong |
Defines the look and feel of the PopupsViewController.