ArcadeEvaluationResult Class

  • ArcadeEvaluationResult
  • class Esri::ArcGISRuntime::ArcadeEvaluationResult

    The result from the successful evaluation of an Arcade expression. More...

    Header: #include <ArcadeEvaluationResult>
    Since: Esri::ArcGISRuntime 100.14
    Inherits: Esri::ArcGISRuntime::Object

    Public Functions

    virtual ~ArcadeEvaluationResult() override
    QVariant castTo(Esri::ArcGISRuntime::ArcadeExpressionReturnType toType) const
    bool equals(Esri::ArcGISRuntime::ArcadeEvaluationResult *other) const
    QVariant result() const

    Detailed Description

    Member Function Documentation

    [override virtual] ArcadeEvaluationResult::~ArcadeEvaluationResult()

    Destructor.

    QVariant ArcadeEvaluationResult::castTo(Esri::ArcGISRuntime::ArcadeExpressionReturnType toType) const

    Returns the result of an evaluation to another type using the Arcade casting rules.

    • toType - The type to cast to.

    Use to ensure that the final return value from a script is cast to an expected type in an Arcade-consistent manner. For more information on the casting behavior for each type, see ArcadeExpressionReturnType. Only types to which a value can be cast are available in ArcadeExpressionReturnType. Other types, such as GeoElement, should be accessed via the result property. An error is not emitted when casting fails. Instead, an error is returned whose value depends on the type of cast attempted.

    bool ArcadeEvaluationResult::equals(Esri::ArcGISRuntime::ArcadeEvaluationResult *other) const

    Returns true if two ArcadeEvaluationResult objects are equal, false otherwise.

    • other - The second object.

    This is a deep comparison, so two separate dictionaries with the same keys and values will compare equal.

    QVariant ArcadeEvaluationResult::result() const

    Returns the result of a successful evaluation.

    May contain one of the following types:

    Note: in the case of a null pointer (nullptr), the QVariant will report isNull == true.

    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.