This class was introduced in Esri::ArcGISRuntime 100.12.
|Esri::ArcGISRuntime::GeotriggerFeed *||feed() const|
|Esri::ArcGISRuntime::ArcadeExpression *||messageExpression() const|
|void||setName(const QString &name)|
You can create a FenceGeotrigger describing areas of interest, covered by spatial rules such as enter or exit. This type of spatial monitoring is also known as "Geofencing".
Member Function Documentation
Esri::ArcGISRuntime::GeotriggerFeed *Geotrigger::feed() const
Returns the GeotriggerFeed that is monitored for changes.
Esri::ArcGISRuntime::GeotriggerType Geotrigger::geotriggerType() const
Returns the type of geotrigger.
The type for a specific Geotrigger object.
Esri::ArcGISRuntime::ArcadeExpression *Geotrigger::messageExpression() const
The expression uses the Arcade language to form an output message that can be:
- A string literal that is the same for all notifications relating to this Geotrigger
- A message that is specific to the attributes of objects that met the Geotrigger
The expression is evaluated, whenever the Geotrigger condition is met in order to populate the GeotriggerNotificationInfo::message property. This message can be displayed to alert the user that the Geotrigger condition has been met. Note that the expression cannot be changed when the GeotriggerMonitor is running.
For example, with a FenceGeotrigger, setting the messageExpression property to:
"You have " + $fencenotificationtype + ' ' + $fencefeature.name
Optionally, the expression can return extra properties in addition to the message. For example, it could produce another string, suitable for logging to a database. To supply additional properties, write an arcade expression that evaluates to a dictionary of key value pairs. A value with the key "message" will be used to populate the GeotriggerNotificationInfo::message property and additional key value pairs will be returned in the GeotriggerNotificationInfo::messageProperties dictionary.
For more information on the available globals and functions for creating the messageExpression see the "Geotrigger Notification" profile at https://developers.arcgis.com/arcade/guide/profiles/.
See also setMessageExpression().
QString Geotrigger::name() const
Returns the name of the Geotrigger.
See also setName().
void Geotrigger::setMessageExpression(Esri::ArcGISRuntime::ArcadeExpression *messageExpression)
Sets the messageExpression to messageExpression.
See also messageExpression.
void Geotrigger::setName(const QString &name)
Sets the name to name.
See also name.