Class ArcadeEvaluator
Allows you to evaluate an Arcade
Inheritance
Implements
Namespace: Esri.ArcGISRuntime.Arcade
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class ArcadeEvaluator : ILoadable
Remarks
This object allows you to set up, execute and query information about an Arcade script. For more general information on Arcade and its usages we refer you to the Arcade online documentation.
To construct the Arcade
The basic workflow is:
- Construct an Arcade
Evaluator object using ArcadeExpression and ArcadeProfile . - Query information about a script.
- Insert the required profile values into a dictionary.
- Call EvaluateAsync(IEnumerable<KeyValuePair<String, Object>>).
- Use the returned Arcade
Evaluation .Result
From an Arcade
- Which profile variables are accessed by the script.
- Which attributes are used by a particular profile variable.
- If the script is considered stable.
Not all scripts use all the profiles variables. Profile
- Informing dependency analysis to determine which scripts need to run when a value of a profile variable changes.
- Minimizing expensive calculation of unneeded profile variables.
Get
Istrue
a script must avoid using unstable builtin
functions such as now()
or random()
.
Is
Constructors
Name | Description |
---|---|
Arcade |
Initializes a new instance of the Arcade |
Properties
Name | Description |
---|---|
Is |
Gets a value indicating whether the script is considered stable. |
Load |
Gets the System. |
Load |
Gets the load status. |
Profile | Gets the Arcade profile under which the script should evaluate. |
Profile |
Gets a collection containing the names of all profile variables used in the script. |
Methods
Name | Description |
---|---|
Cancel |
Cancel loading metadata for the object. |
Create |
Creates a new instance of the Arcade |
EvaluateAsync(IEnumerable<KeyValuePair<String, Object>>) | Evaluates the script using the supplied profile variables. |
Get |
Returns a collection of attributes used in the script for a given profile variable. |
Get |
Returns a collection of attributes used in the script for a given profile variable. |
Load |
Load the metadata for the object asynchronously. |
Retry |
Loads or retries loading metadata for the object asynchronously. |
Events
Name | Description |
---|---|
Loaded | Occurs when the Arcade evaluator is loaded. |
Load |
Occurs when the Load |
Applies to
Target | Versions |
---|---|
.NET Standard 2.0 | 100.14 - 200.6 |
.NET | 100.14 - 200.6 |
.NET Windows | 100.14 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.14 - 200.6 |
Xamarin.Android | 100.14 - 100.15 |
Xamarin.iOS | 100.14 - 100.15 |
UWP | 100.14 - 200.6 |