Configures and creates an ArcadeEnvironment. More...
| Header | #include <Arcade |
| Since | Esri |
| Inherits | Esri |
Public Functions
| Arcade | |
| virtual | ~ |
| QString | locale() const |
| Esri | portal() const |
| void | set |
| void | set |
| void | set |
| void | set |
| Esri | spatial |
| QString | time |
| Esri | to |
Detailed Description
Member Function Documentation
[explicit] ArcadeEnvironmentBuilder::ArcadeEnvironmentBuilder (QObject *parent = nullptr)
Creates a new ArcadeEnvironmentBuilder with default property values.
[override virtual noexcept] ArcadeEnvironmentBuilder::~ArcadeEnvironmentBuilder ()
Destructor.
QString ArcadeEnvironmentBuilder::locale() const
Returns the default locale when executing Arcade expressions.
Uses CLDR/BCP-47 language tag format. If no locale is provided, the system locale is used by default. If an Arcade function accepts a locale override as a parameter, that value takes precedence over this property.
See also setLocale().
Esri::ArcGISRuntime::Portal *ArcadeEnvironmentBuilder::portal() const
Returns the default portal the script should reference as its executing owner.
This is used, for example, to determine the user.
When present, ArcadeEvaluator automatically loads this portal during expression evaluation. If the portal fails to load, expression evaluation fails. If no portal is provided, expressions that require a portal will fail to evaluate.
See also setPortal().
void ArcadeEnvironmentBuilder::setLocale (const QString &locale)
Sets the default locale when executing Arcade expressions to locale.
Uses CLDR/BCP-47 language tag format.
See also locale().
void ArcadeEnvironmentBuilder::setPortal (Esri::ArcGISRuntime::Portal *portal)
Sets the default portal the script should reference as its executing owner to portal.
This is used, for example, to determine the user.
See also portal().
void ArcadeEnvironmentBuilder::setSpatialReference (const Esri::ArcGISRuntime::SpatialReference &spatialReference )
Sets the default spatial reference when executing Arcade expressions to spatialReference.
See also spatialReference().
void ArcadeEnvironmentBuilder::setTimeZone (const QString &timeZone )
Sets the default time zone used to execute the Arcade expression to timeZone.
This value follows Arcade time zone text formats as described in Arcade Date functions: TimeZone.
See also timeZone().
Esri::ArcGISRuntime::SpatialReference ArcadeEnvironmentBuilder::spatialReference () const
Returns the default spatial reference when executing Arcade expressions.
If no spatial reference is provided, a default is used. If an Arcade function accepts a spatial reference override as a parameter, that value takes precedence over this property.
See also setSpatialReference().
QString ArcadeEnvironmentBuilder::timeZone () const
Returns the default time zone used to execute the Arcade expression.
This value follows Arcade time zone text formats as described in Arcade Date functions: TimeZone.
Accepted values include:
- Text representing an entry in the IANA time zone database. For example,
"America/Los_Angeles". - Text representing a UTC offset in the form
"+/-HH:MM". For example,"+07:00". "UTC"- Coordinated Universal Time."unknown"- removes time zone information for the given value and displays the date and time as defined in the expression.
Note that "system", "default", and "local" are not accepted values for override, as that is the default behavior when no override is provided.
If no time zone is provided, the system time zone is used by default. If an Arcade function accepts a time zone override as a parameter, that value takes precedence over this property.
See also setTimeZone().
Esri::ArcGISRuntime::ArcadeEnvironment *ArcadeEnvironmentBuilder::toArcadeEnvironment (QObject *parent = nullptr)
Creates an immutable ArcadeEnvironment from the properties in this ArcadeEnvironmentBuilder.
Will throw ErrorType::CommonIllegalState if one or more properties set on the ArcadeEnvironmentBuilder are invalid and an ArcadeEnvironment cannot be built.
Returns the immutable ArcadeEnvironment with parent as its QObject parent.