Class ExpressionPopupElement

java.lang.Object
com.esri.arcgisruntime.mapping.popup.PopupElement
com.esri.arcgisruntime.mapping.popup.ExpressionPopupElement
All Implemented Interfaces:
JsonSerializable

public final class ExpressionPopupElement extends PopupElement
Represents a pop-up element of type expression that defines a pop-up element with an Arcade expression. The expression must evaluate to a TextPopupElement, FieldsPopupElement, or a MediaPopupElement.
Since:
100.14.0
  • Constructor Details

    • ExpressionPopupElement

      public ExpressionPopupElement(PopupExpression popupExpression)
      Creates a new expression pop-up element with the given expression.

      Refer to Popup Element for more details.

      Parameters:
      popupExpression - an Arcade expression that defines the pop-up element. The return type will always be PopupExpression.ReturnType.DICTIONARY which must follow the Web Map Specification for a pop-up element. This param may be null.
      Since:
      100.14.0
  • Method Details

    • getPopupExpression

      public PopupExpression getPopupExpression()
      Gets the Arcade expression that defines the pop-up element.
      Returns:
      the Arcade expression that defines the pop-up element, or null if none
      Since:
      100.14.0
      See Also:
    • setPopupExpression

      public void setPopupExpression(PopupExpression popupExpression)
      Sets the Arcade expression that defines the pop-up element.
      Parameters:
      popupExpression - the Arcade expression that defines the pop-up element
      Since:
      100.14.0
      See Also: