Show / Hide Table of Contents

Method EvaluateExpressionsAsync

EvaluateExpressionsAsync()

Asynchronously evaluates all expressions available at Expressions or at PopupExpression. The expression can include Arcade FeatureSet functions, which need to be evaluated asynchronously.

Declaration
public async Task<IReadOnlyList<PopupExpressionEvaluation>> EvaluateExpressionsAsync()
Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<PopupExpressionEvaluation>>

A task object representing the asynchronous evaluation of expressions. The value of the task result is a read-only list of PopupExpressionEvaluation.

Remarks

Also populates the EvaluatedElements from Elements. During the evaluation, each ExpressionPopupElement is replaced by the PopupElement returned by the Arcade expression and each placeholder is replaced by its value.

This method must be called before displaying the popup information in a UI so you can use synchronous method GetFormattedValue(PopupField) to get the formatted System.String representation. If there are no Expressions and no popup elements of type ExpressionPopupElement then the result array will be empty.

The PopupExpression may be used in the Fields, Media, Title, and Description.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.8 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.8 - 200.7
Xamarin.Android100.8 - 100.15
Xamarin.iOS100.8 - 100.15
UWP100.8 - 200.7
In This Article
Back to top Copyright © 2022 Esri.