ArcGIS Runtime SDK for iOS
100.15
|
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 popups view controller when the user cancels editing the current popup.
popupsViewController | The popups view controller. |
popup | The popup whose geo element was started to be edited but later canceled. |
|
optional |
The popups view controller 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.
popupsViewController | The popups view controller. |
popup | The popup whose feature type was changed. |
|
optional |
The popups view controller will call this method when the currently showing popup changes.
popupsViewController | The popups view controller. |
popup | The popup which is currently being displayed. |
|
optional |
The method called by the popups view controller when a geo element was successfully deleted.
popupsViewController | The popups view controller. |
popup | The popup whose geo element was deleted. |
|
optional |
The method called by the popups view controller when it fails to delete a geo element. If you do not implement this method, then the popups view controller 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 popups view controller. |
popup | The popup whose geo element was meant to be deleted. |
error | The error that occurred. |
|
optional |
The method called by the popups view controller 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 popups view controller will show an alert depicting the localized description of the error.
popupsViewController | The popups view controller. |
popup | The popup whose geo element was edited. |
error | The error that occurred when trying to finish editing. |
|
optional |
The method called by the popups view controller when the user is done editing the current popup.
applyEditsWithCompletion:
if dealing with AGSArcGISFeature
objects. popupsViewController | The popups view controller. |
popup | The popup whose geo element was edited. |
|
optional |
The method called by the popups view controller when the user begins editing the current popup.
popupsViewController | The popups view controller. |
popup | The popup whose geo element needs to be edited. |
|
optional |
Implement this method if you want to provide a custom footer view for the popup.
popupsViewController | The popups 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 popups 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 taps 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 sketch editor that was earlier passed to the popups view controller through the popupsViewController:sketchEditorForPopup:
delegate method. If you want to make programmatic changes to the popup's geometry, you should go through this sketch editor. This allows the popups view controller 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 sketch editor that should be used for editing a popup's geometry. |
popup | The popup whose geo element's geometry needs to be edited. |
|
optional |
The popups view controller will call this delegate method when it one of its 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 popups 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 | The popup of the id<AGSGeoElement> for which a sketch editor is required. |
|
optional |
The method called by the popups view controller when a popup's validity is changed. This happens when the geometry or attributes of the popup's geo element are changed. isValid
will be YES
if it is determined that a geo element meets its requirements to be saved to its datasource. This method is useful if you have your own "finish editing" button and you want to enable/disable it when the geo element is valid.
popupsViewController | The popups view controller. |
isValid | A Boolean value indicating whether or not the geo element meets its known requirements to be saved to its datasource. |
|
optional |
The method called by the popups view controller when the user confirms they want to delete the geo element. The implementer of this method must actually delete the geo element.
AGSArcGISFeature
objects. This method will be called for all other types of geo elements. popupsViewController | The popups view controller. |
popup | The popup whose geo element needs to be deleted. |
YES
if the popup was successfully deleted, otherwise NO
.
|
optional |
The popups view controller 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 popups view controller. |
vc | The view controller that needs to be hidden. |
viewType | The predefined type of the view controller. |
|
optional |
The popups view controller 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 UIDocumentInteractionController
. If you have need to hide or show popovers before previewing, you should implement this method and create the document interaction controller manually.
popupsViewController | The popups view controller. |
documentURL | The URL of the document. |
fvc | The view controller that is currently being displayed. |
rect | The rect is in the coordinate space of fvc . |
|
optional |
The popups view controller 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 popups 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 fvc . Only applicable if viewType is AGSPopupViewControllerTypeUIImagePicker . |
|
optional |
The method called by the popups view controller 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 popups view controller. |
popup | The popup whose geo element was edited. |
|
optional |
The method that is called when the user is done viewing the popups.
popupsViewController | The popups view controller. |