|
ArcGIS Runtime SDK for iOS
100.9
|
A delegate of AGSPopupsViewController.
A protocol that must be adopted by any class wishing to be notified when AGSPopupsViewController detects user interaction with popups or if a user tries to edit a popup. An instance of the class must then be set as AGSPopupsViewController::delegate .
All methods of this protocol are optional.
|
optional |
The method called by the AGSPopupsViewController when the user cancels editing the current popup.
| popupsViewController | The popup view controller |
| popup | whose id<AGSGeoElement> was started to be edited but later canceled |
|
optional |
The AGSPopupsViewController will call this when the user switches a feature type for the current popup. Potentially at this point symbology will change for the feature. Currently this is only called for AGSArcGISFeature popups.
|
optional |
The AGSPopupsViewController will call this method when the currently showing popup changes.
| popupsViewController | The popup view controller |
| popup | which is currently being displayed |
|
optional |
The method called by the AGSPopupsViewController when a id<AGSGeoElement> was successfully deleted.
| popupsViewController | The popup view controller |
| popup | whose id<AGSGeoElement> was deleted |
|
optional |
The method called by the AGSPopupsViewController when it fails to delete a id<AGSGeoElement>. If you do not implement this method then AGSPopupsViewController will show an alert to the user with the error. If you do implement this method then you are responsible for bubbling up the error to the user.
| popupsViewController | The popup view controller |
| popup | whose id<AGSGeoElement> was meant to be deleted |
| error | that occurred |
|
optional |
The method called by the AGSPopupsViewController when the user tries to finish editing but errors were encountered. If you implement this method then you are responsible for showing any UI that should be shown when an editing error occurs. If you do not implement this method the AGSPopupsViewController will show an alert depicting the localized description of the error.
| popupsViewController | The popup view controller |
| popup | whose id<AGSGeoElement> was edited |
| error | that occurred when trying to finish editing |
|
optional |
The method called by the AGSPopupsViewController when the user is done editing the current popup.
applyEditsWithCompletion if dealing with AGSArcGISFeature objects. | popupsViewController | The popup view controller |
| popup | whose id<AGSGeoElement> was edited |
|
optional |
The method called by the AGSPopupsViewController when the user begins editing the current popup.
| popupsViewController | The popup view controller |
| popup | whose id<AGSGeoElement> needs to be edited |
|
optional |
Implement this method if you want to provide a custom footer view for the popup.
| popupsViewController | The popup view controller |
| popup | The popup the footer view will display for |
|
optional |
Implement this method if you want to provide a custom header view for the popup.
| popupsViewController | The popup view controller |
| popup | The popup the header view will display for |
|
optional |
Tells the delegate that a user is ready to edit the geometry for the current popup. This will happen when the user clicks the toolbar item for editing the geometry. Or if the editing mode is "Geometry Inline", it will happen when editing begins. The sketchEditor is the sketchEditor that was earlier passed to the popupsViewController through the popupsViewController:sketchEditorForPopup: delegate method. If you want to make programmatic changes to the popup's geometry, you should go through this sketchEditor. This allows the popupsViewController to know when the geometry changes so that it can update it's UI appropriately (ie. enabling the "Done" button).
| popupsViewController | The popup view controller |
| sketchEditor | The sketchEditor that should be used for editing a popup's geometry. |
| popup | whose id<AGSGeoElement>'s geometry needs to be edited |
|
optional |
The AGSPopupsViewController will call this delegate method when it one of it's view controllers needs to know if it can auto-rotate to a certain interface orientation. If you don't implement this method then we just always return YES.
| popupsViewController | The popup view controller |
| vc | The view controller that needs to respond to orientation change |
| viewType | the predefined type of the view controller |
|
optional |
Tells the delegate that a sketch editor is required for an AGSPopup. The popupsViewController will listen for changes to the AGSSketchEditor to determine when the geometry is in a valid state. Depending upon the type of geometry (point, polygon, polyline, etc) required for the id<AGSGeoElement>, the delegate must return a sketch editor for editing the appropriate type of geometry. At this point the sketchEditor should be started and assigned to the appropriate AGSMapView.
| popupsViewController | The popup view controller |
| popup | Popup of the id<AGSGeoElement> for which a sketchEditor is required. |
|
optional |
The method called by the AGSPopupsViewController when a popup's validity is changed. This happens when the geometry or attributes of the popup's id<AGSGeoElement> are changed. isValid will be YES if it is determined that a id<AGSGeoElement> meets it's requirements to be saved to it's datasource. This method is useful if you have your own "finish editing" button and you want to enable/disable it when the id<AGSGeoElement> is valid.
| popupsViewController | The popup view controller |
| isValid | Whether or not the id<AGSGeoElement> meets it's known requirements to be saved to it's datasource. |
|
optional |
The method called by the AGSPopupsViewController when the user confirms they want to delete the id<AGSGeoElement>. The implementer of this method must actually delete the id<AGSGeoElement>.
id<AGSGeoElement> that we don't know how to delete. Currently, the popup only knows how to delete AGSArcGISFeature objects. This method will be called for all other types of id<AGSGeoElement> objects. | popupsViewController | The popup view controller |
| popup | whose id<AGSGeoElement> needs to be deleted |
|
optional |
The AGSPopupsViewController will call this method on the delegate when a view controller needs to be hidden. You need to implement this if you implement popupsViewController:wantsToShowViewController:fromViewController:atRect, so that you can hide a view controller in the proper way if you've shown it in a custom manner.
| popupsViewController | The popup view controller |
| vc | The view controller that needs to be hidden |
| viewType | the predefined type of the view controller |
|
optional |
The AGSPopupsViewController will call this method when there is a document that it wants to preview. By default, if this method is not implemented, it will preview the document with a UIDocumentInteractionController. If you have need to hide or show popovers before previewing you should implement this method and create the UIDocumentInteractionController manually.
|
optional |
The AGSPopupsViewController will call this method on the delegate when a view controller needs to be presented. This method is optional, but if you want to show view controllers in different ways than the standard modal way, then you need to implement this method.
| popupsViewController | The popup view controller |
| svc | The view controller that needs to be displayed |
| viewType | The predefined type of the view controller |
| fvc | The view controller that is currently being displayed |
| rect | The rect is in the coordinate space of the fromViewController. Only applicable if viewType is AGSPopupViewControllerTypeUIImagePicker |
|
optional |
The method called by the AGSPopupsViewController when the user is done editing the current popup. This method is called before popupsViewController:didFinishEditingForPopup and it is also called before feature updates are submitted to its table (when dealing with AGSFeature objects).
| popupsViewController | The popup view controller |
| popup | whose id<AGSGeoElement> was edited |
|
optional |
The method that is called when the user is done viewing the popups.
| popupsViewController | The popup view controller |