Class PopupManager
Instances of this class represent a popup manager that contains the necessary business logic for displaying and editing popup information for geo-elements. This class is useful, for instance, if you want to create your own View for displaying a Popup.
Implements
Namespace: Esri.ArcGISRuntime.Mapping.Popups
Assembly: Esri.ArcGISRuntime.dll
Syntax
public class PopupManager : INotifyPropertyChanged
Constructors
Name | Description |
---|---|
PopupManager(Popup) | Initializes a new instance of the PopupManager class. |
Properties
Name | Description |
---|---|
AllowDelete | Gets a value indicating whether or not the popup view should allow deleting. |
AllowEdit | Gets a value indicating whether or not the popup view should allow editing. |
AllowEditAttachments | Gets a value indicating whether or not the popup view should allow editing the attachments. |
AllowEditGeometry | Gets a value indicating whether or not the popup view should allow editing the geometry. |
AttachmentManager | Gets the attachment manager for this popup |
CustomDescriptionHtml | Gets the text to display as the custom HTML description. |
DisplayedFields | Gets the PopupField Values that are for display purposes only |
EditableDisplayFields | Gets the PopupField Values that are editable |
EditSummary | Gets the edit summary text. |
EvaluatedElements | Gets a collection of PopupElement objects evaluated asynchronously by EvaluateExpressionsAsync(). |
FeatureType | gets the current FeatureType, if any, for the GeoElement |
Formatter | Gets or sets the formatter used for formatting dates and numbers. Defaults to System.Globalization.CultureInfo.CurrentUICulture. |
IsEditing | Gets a value indicating whether editing is currently enabled. |
IsGeoElementValid | Gets a value indicating whether or not the GeoElement is in a valid state as far as the values it has set in its attributes and its geometry. |
IsGeometryValid | Gets a value indicating whether the geometry is in a valid state for finishing the edit |
Popup | Gets the Popup instance this manager is based on |
ShowAttachments | Gets a value indicating whether or not the popup view should show the attachments. |
ShowCustomDescriptionHtml | Gets a value indicating whether or not the popup view should show the custom description HTML. |
ShowEditSummary | Gets a value indicating whether or not the popup view should show the edit info summary. |
ShowMedia | Gets a value indicating whether or not the popup view should show the media. |
ShowRelatedRecords | Gets a value indicating whether or not the popup view should show the related records. |
SketchEditor | Gets or sets the geometry editor for editing the feature. |
Symbol | Gets the symbol used by the popup's geo-element |
Title | Gets the text to display as the popup title. |
TreatWarningsAsErrors | Gets or sets a value indicating whether warnings should be treated as errors. |
Methods
Name | Description |
---|---|
CancelEditing() | Cancels the editing of the popup. This rolls the GeoElement back to its original state. |
EvaluateExpressionsAsync() | Asynchronously evaluates all expressions, including Arcade FeatureSet functions available at Expressions. This method must be called before displaying the popup information in a UI and after FinishEditingAsync() so you can use the synchronous methods GetFormattedValue(PopupField), Substitute(String), and the CustomDescriptionHtml property to get the formatted string representation. If there are no Expressions then result array will be empty. |
FinishEditingAsync() | Completes the edit against the GeoElement. |
GetContingencyValidationErrors() | Returns the set of all field contingency validation errors. |
GetContingencyValidationWarnings() | Returns the set of all field contingency validation warnings. |
GetContingentValues(PopupField) | Gets the contingent values for the specified field. |
GetDomain(PopupField) | Gets the domain for the given field. |
GetFieldByName(String) | Returns the PopupField for a given field name. |
GetFieldLabel(PopupField) | Gets the label for the specified PopupField. |
GetFieldType(PopupField) | Gets the type of field for the popup field |
GetFieldValue(PopupField) | Gets the attribute value for the field. |
GetFieldValue(String, PopupElement) | Returns the attribute value for the field specified by a name. |
GetFormattedValue(PopupField) | Returns a formatted String representation of the current popup field's value. |
GetMaxLength(PopupField) | Gets the maximum text length of the field |
GetValidationError(PopupField) | Gets the validation error for the specified field - if any. |
GetValidationWarning(PopupField) | Gets the validation warning for the specified field. |
IsInFieldGroup(PopupField) | Returns a value indicating whether the specified field participates in a FieldGroup. |
IsNullable(PopupField) | Gets a value indicating whether the provided field allows |
IsTypeIdField(PopupField) | Gets a value indicating whether the provided field is a type id field. |
StartEditing() | Starts editing of the GeoElement. |
Substitute(String) | Substitutes attribute values for attribute place-holders in a given template string. |
UpdateValue(FeatureTemplate, Boolean) | Updates the attribute value for a field. |
UpdateValue(Object, PopupField) | Updates the attribute value for a field. |
Events
Name | Description |
---|---|
PropertyChanged | Occurs when a property value changes. |
Applies to
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.2.1 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.2.1 - 100.15 |
Xamarin.iOS | 100.2.1 - 100.15 |
UWP | 100.2.1 - 100.15 |