21 #import <Foundation/Foundation.h> 22 #import <ArcGIS/AGSDefines.h> 23 #import <ArcGIS/AGSField.h> 73 #pragma mark Notifications / (Events) 95 #pragma mark initializers 104 -(instancetype)initWithPopup:(
AGSPopup *)popup;
108 #pragma mark properties 114 @property (nullable, nonatomic, weak, readwrite) id<AGSPopupManagerDelegate>
delegate;
123 @property (nonatomic, unsafe_unretained, readonly)
AGSPopup *popup;
131 #pragma mark display properties 147 @property (nonatomic, copy, readonly) NSArray<AGSPopupField*> *
displayFields;
150 #pragma mark Strings that the popup view controller will use in the UI 156 @property (nullable, nonatomic, copy, readonly) NSString *
title;
170 @property (nullable, nonatomic, copy, readonly) NSString *
editSummary;
177 #pragma mark Properties for what UI the popup view controller should show 239 #pragma mark editing properties 244 @property (nonatomic, assign, readonly, getter=isEditing) BOOL
editing;
256 @property (nonatomic, assign, readonly, getter=isGeoElementValid) BOOL
geoElementValid;
264 #pragma mark Value Helper Methods 276 -(nullable NSString*)stringForTemplatedString:(NSString*)templatedString;
283 -(nullable NSNumber*)numberFromString:(NSString*)stringValue field:(
AGSPopupField*)popupField ;
293 -(nullable NSNumber*)numberFromString:(NSString *)stringValue field:(
AGSPopupField *)popupField error:(NSError**)error;
305 -(NSString*)formattedValueForField:(
AGSPopupField*)popupField;
315 #pragma mark Field Helper Methods 353 #pragma mark Async Methods 369 #pragma mark Editing Methods 373 #pragma mark methods for starting, cancelling, finishing editing 392 -(void)finishEditingWithCompletion:(
void(^)(NSError * __nullable error))completion;
395 #pragma mark methods for updating the value in the geo-element when user changes values 404 -(BOOL)updateValue:(nullable
id)newValue field:(
AGSPopupField*)popupField validationError:(NSError**)validationError;
411 -(BOOL)featureTypeChangeRequiresUserNoficationForTemplate:(nullable
AGSFeatureTemplate*)featureTemplate ;
417 -(BOOL)featureTypeChangeRequiresUserNotificationForTemplate:(nullable
AGSFeatureTemplate*)featureTemplate;
426 #pragma mark methods for getting validation errors and messages 432 -(nullable NSError*)validationErrorForField:(
AGSPopupField*)popupField;
437 -(nullable NSError*)validationWarningForField:(
AGSPopupField*)popupField;
443 -(nullable NSString*)rangeValidationTextForField:(
AGSPopupField*)popupField;
464 -(void)popupManager:(
AGSPopupManager*)popupManager validityDidChange:(BOOL)geoElementValid;
A symbol used to display a graphic or a feature.
Definition: AGSSymbol.h:51
Represents all of the information needed to create a feature.
Definition: AGSFeatureTemplate.h:56
#define AGS_EXTERN
Definition: AGSDefines.h:22
Encapsulates properties of types of features in a feature layer.
Definition: AGSFeatureType.h:33
information about a field's domain
Definition: AGSDomain.h:29
A class that allows the user to sketch geometries on the map.
Definition: AGSSketchEditor.h:68
AGSFieldType
Definition: AGSField.h:30
A protocol exposed by operations that allow cancellation.
Definition: AGSCancelable.h:32