;

GeotriggerNotificationInfo QML Type

Provides details about a Geotrigger condition that has been met. More...

Import Statement: import Esri.ArcGISRuntime 100.13
Since: Esri.ArcGISRuntime 100.12
Inherits:

Object

Properties

Detailed Description

A GeotriggerNotificationInfo is sent by a GeotriggerMonitor whenever the condition described by its Geotrigger is met. The Geotrigger also defines how the GeotriggerNotificationInfo should be created. For example, it describes what message should be displayed to the user.

Note: You cannot declare or create a component of this type in QML code.

Property Documentation

feedEntityId : string

Unique ID for the entity within the feed that triggered the notification info (read-only).

This property will be consistent for all notifications for a given feed entity. For example, use this ID to count the number of sites a team-member visits.

If a feed uses a AbstractLocationDataSource, all location updates for that feed will share the same ID.

With a FenceGeotrigger, you can combine this property with the FenceGeotriggerNotificationInfo::fenceId to create an ID that groups all notifications for a given feed entity and a specific fence. For example, use a concatenation of the two properties to display a list of areas of interest that are currently occupied and the details of who has entered them.

To group events by the geotrigger, use the Geotrigger::geotriggerId property.

This property was introduced in Esri.ArcGISRuntime 100.13.

See also FenceGeotriggerNotificationInfo::fenceId and Geotrigger::geotriggerId.


feedLocation : Location

A Location, received from the feed, that meets the GeotriggerMonitor condition (read-only).

The Location is set if a LocationGeotriggerFeed was used to create the Geotrigger that the GeotriggerMonitor is monitoring. This allows you to access the position and meta-data from the feed, such as the horizontal accuracy, velocity, and time stamp.


geotriggerMonitor : GeotriggerMonitor

The GeotriggerMonitor that sent this notification (read-only).

The GeotriggerMonitor evaluates a specific Geotrigger condition that has been met by this GeotriggerNotificationInfo. A single Geotrigger condition can result in multiple, repeat notifications.

This property can be used to interact directly with the GeotriggerMonitor. For example, if you no longer want to receive future notifications, you can call GeotriggerMonitor.stop.


message : string

A message that describes the notification (read-only).

The notification message is the result of evaluating the Geotrigger::messageExpression for the specific feed and fence objects that triggered this notification. The message could be a hard-coded string or use attributes from an area of interest that was entered to display a custom message.

For example, with a FenceGeotrigger, setting the Geotrigger::messageExpression property to:

"You have entered " + $fencefeature.area_name

would return the message "You have entered Area A", where "area_name" is an attribute field on the FenceGeotriggerNotificationInfo::fenceGeoElement.

You can use this message to alert the user directly or in other business logic in your app.


messageProperties : jsobject

A dictionary of optional properties derived from the Geotrigger::messageExpression (read-only).

Optionally, the ArcadeExpression can be evaluated to produce properties on top of the basic message. You can access this additional information via this dictionary.


objectType : Enums.GeotriggerNotificationInfoType

The type of geotrigger notification info (read-only).

The type for a specific GeotriggerNotificationInfo object.


Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.