Class PopupExpressionEvaluation

java.lang.Object
com.esri.arcgisruntime.mapping.popup.PopupExpressionEvaluation

public final class PopupExpressionEvaluation extends Object
The result of an attempt to evaluate a popup expression.

The popup expression can come from the PopupDefinition.getExpressions() or from the ExpressionPopupElement.getPopupExpression().

Since:
100.8.0
  • Method Details

    • getPopupExpression

      public PopupExpression getPopupExpression()
      One of the Arcade expressions defined on popup at PopupDefinition.getExpressions() or at ExpressionPopupElement.getPopupExpression().
      Returns:
      one of the Arcade expressions defined on popup at PopupDefinition.getExpressions() or at ExpressionPopupElement.getPopupExpression()
      Since:
      100.8.0
    • getResult

      public Object getResult()
      Gets the result of an evaluation of getPopupExpression(). The type of result object is a String, a Number, or a Dictionary based on the PopupExpression.getReturnType().

      Dictionary return type is only supported for popup expressions coming from an ExpressionPopupElement. In this case, the dictionary must follow the Web Map Specification for a popupElement. Refer to Popup Element for more details.

      Returns:
      the result of an evaluation of PopupExpressionEvaluation.getPopupExpression(). The type of result object is a String, a Number, or a Dictionary based on the PopupExpression.getReturnType().
      Since:
      100.8.0
    • getError

      public ArcGISRuntimeException getError()
      Gets the error information about the evaluation of the popup expression.
      Returns:
      an ArcGISRuntimeException, or null if the expression was evaluated successfully
      Since:
      100.8.0