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
Relevant samples:
- Query features with Arcade expression: Query features on a map using an Arcade expression.
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:
nullptr
- bool
- double
- int32_t
- uint32_t
- int64_t
- uint64_t
- QString
- QDateTime
- DateOnly
- TimeOnly
- TimestampOffset
- QList
- QVariantMap
- GeoElement