27 #import <Foundation/Foundation.h>
28 #import <ArcGIS/AGSDefines.h>
29 #import <ArcGIS/AGSField.h>
30 #import <ArcGIS/AGSCancelable.h>
82 #pragma mark Notifications / (Events)
119 #pragma mark initializers
128 -(instancetype)initWithPopup:(
AGSPopup *)popup;
132 #pragma mark properties
138 @property (nullable, nonatomic, weak, readwrite) id<AGSPopupManagerDelegate>
delegate;
175 #pragma mark display properties
191 @property (nonatomic, copy, readonly) NSArray<AGSPopupField*> *
displayFields;
194 #pragma mark Strings that the popup view controller will use in the UI
200 @property (nullable, nonatomic, copy, readonly) NSString *
title;
214 @property (nullable, nonatomic, copy, readonly) NSString *
editSummary;
221 #pragma mark Properties for what UI the popup view controller should show
283 #pragma mark editing properties
288 @property (nonatomic, assign, readonly, getter=isEditing) BOOL
editing;
300 @property (nonatomic, assign, readonly, getter=isGeoElementValid) BOOL
geoElementValid;
320 #pragma mark Value Helper Methods
332 -(nullable NSString*)stringForTemplatedString:(NSString*)templatedString;
339 -(nullable NSNumber*)numberFromString:(NSString*)stringValue field:(
AGSPopupField*)popupField ;
349 -(nullable NSNumber*)numberFromString:(NSString *)stringValue field:(
AGSPopupField *)popupField error:(NSError**)error;
361 -(NSString*)formattedValueForField:(
AGSPopupField*)popupField;
387 - (nullable id)valueForFieldName:(NSString *)fieldName
390 #pragma mark Field Helper Methods
428 #pragma mark Contingent Value Helper Methods
443 #pragma mark Async Methods
459 #pragma mark Editing Methods
463 #pragma mark methods for starting, cancelling, finishing editing
482 -(void)finishEditingWithCompletion:(
void(^)(NSError * __nullable error))completion;
485 #pragma mark methods for updating the value in the geoelement when user changes values
494 -(BOOL)updateValue:(nullable
id)newValue field:(
AGSPopupField*)popupField validationError:(NSError**)validationError;
501 -(BOOL)featureTypeChangeRequiresUserNoficationForTemplate:(nullable
AGSFeatureTemplate*)featureTemplate ;
507 -(BOOL)featureTypeChangeRequiresUserNotificationForTemplate:(nullable
AGSFeatureTemplate*)featureTemplate;
516 #pragma mark methods for getting validation errors and messages
522 -(nullable NSError*)validationErrorForField:(
AGSPopupField*)popupField;
527 -(nullable NSError*)validationWarningForField:(
AGSPopupField*)popupField;
533 -(nullable NSString*)rangeValidationTextForField:(
AGSPopupField*)popupField;
554 -(void)popupManager:(
AGSPopupManager*)popupManager validityDidChange:(BOOL)geoElementValid;
#define AGS_EXTERN
Definition: AGSDefines.h:28
AGSFieldType
Definition: AGSField.h:37
An object that defines possible values for a field in the context of the contingent field groups it p...
Definition: AGSContingentValuesResult.h:39
information about a field's domain
Definition: AGSDomain.h:37
Represents all of the information needed to create a feature.
Definition: AGSFeatureTemplate.h:64
Encapsulates properties of types of features in a feature layer.
Definition: AGSFeatureType.h:41
A class that allows the user to sketch geometries on the map.
Definition: AGSSketchEditor.h:75
A symbol used to display a graphic or a feature.
Definition: AGSSymbol.h:93
A protocol exposed by operations that allow cancellation.
Definition: AGSCancelable.h:38