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
Target | Versions |
---|---|
.NET Standard 2.0 | 100.8 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.8 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.8 - 100.12 |
Xamarin.Android | 100.8 - 100.15 |
Xamarin.iOS | 100.8 - 100.15 |
UWP | 100.8 - 100.15 |