LocationGeotriggerFeed QML Type

Feed data for a Geotrigger created from an AbstractLocationDataSource. More...

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

GeotriggerFeed

Properties

Signals

Detailed Description

The GeotriggerFeed is the dynamic component of a Geotrigger. Typically, it is the data that moves around and triggers the condition. For example, if the condition is "notify me when my position comes within 50 meters of one of my target areas", the feed data is "my position".

To receive location updates, the AbstractLocationDataSource must be started. If you call GeotriggerMonitor::stop, the underlying AbstractLocationDataSource is not stopped for you. In other words, it may continue to receive GPS readings.

If the LocationGeotriggerFeed is from a Geotrigger defined in a GeotriggersInfo, you must supply a AbstractLocationDataSource to provide the device location. Set the locationDataSource to your AbstractLocationDataSource - for example, using the LocationDisplay::dataSource.

Property Documentation

filter : ArcadeExpression

An ArcadeExpression that controls whether an update from the LocationGeotriggerFeed is sent to a GeotriggerMonitor.

The expression uses the Arcade language to determine whether feed entity updates are suitable for monitoring. The ArcadeExpression must evaluate to a boolean where:

  • true indicates that the update will be used.
  • false indicates that the update will not be used.

Filtering out undesirable updates reduces inaccurate notifications from your GeotriggerMonitor. For example, you could filter out GPS updates where the horizontal accuracy is poor, to avoid false enter and exit notifications.

With a LocationGeotriggerFeed, the expression inspects a new Location object and returns true if it is suitable and false if not. Typically, your expression excludes Location objects where the Location::horizontalAccuracy does not meet your criteria - but it could also consider other properties such as Location::velocity and Location::course.

Arcade gives you access to the properties of the feed entity with the $locationupdate profile variable. This represents a new Location received from your device GPS. For example, an ArcadeExpression with the following string rejects Location updates with a horizontal accuracy greater than 10 meters:

return $locationupdate.horizontalaccuracy <= 10;

This property was introduced in Esri.ArcGISRuntime 100.13.


locationDataSource : AbstractLocationDataSource

The location data source that provides updates for the device location.

To receive location updates, the AbstractLocationDataSource must be started. If you call GeotriggerMonitor::stop, the underlying AbstractLocationDataSource will not be stopped for you. For example, it may continue to receive GPS readings.


Signal Documentation

filterChanged()

Emitted when the filter property changes.

Note: The corresponding handler is onFilterChanged.

This signal was introduced in Esri.ArcGISRuntime 100.13.


locationDataSourceChanged()

Emitted when the locationDataSource property changes.

Note: The corresponding handler is onLocationDataSourceChanged.


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