Show / Hide Table of Contents

Property Filter

Filter

Gets or sets an ArcadeExpression that controls whether an update from the LocationGeotriggerFeed is sent to a GeotriggerMonitor.

Declaration
public ArcadeExpression Filter { get; set; }
Property Value
Type Description
ArcadeExpression

An ArcadeExpression that controls whether an update from the LocationGeotriggerFeed is sent to a GeotriggerMonitor; or null if no filter is defined.

Remarks

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 HorizontalAccuracy does not meet your criteria - but it could also consider other properties such as Velocity and 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;

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.13 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.13 - 200.7
Xamarin.Android100.13 - 100.15
Xamarin.iOS100.13 - 100.15
UWP100.13 - 200.7
In This Article
Back to top Copyright © 2022 Esri.