Class Geotrigger
A condition monitored by a GeotriggerMonitor.
Namespace: Esri.ArcGISRuntime.Geotriggers
Assembly: Esri.ArcGISRuntime.dll
Syntax
public abstract class Geotrigger
Remarks
A Geotrigger defines a condition that can be continually monitored in real time. After the condition is met, the Geotrigger defines how a GeotriggerNotificationInfo can be used to inform the user.
A GeotriggerMonitor, created with the Geotrigger, handles monitoring and reporting.
You can create a FenceGeotrigger describing target areas, covered by spatial rules such as enter or exit. This type of spatial monitoring is also known as "Geofencing".
If a Geotrigger is defined in a GeotriggersInfo, check whether the GeotriggerFeed is of type LocationGeotriggerFeed and, if so, supply a LocationDataSource to provide your device location. Set the LocationDataSource to your LocationDataSource - for example, using the DataSource.
Properties
| Name | Description |
|---|---|
| Feed | Gets the GeotriggerFeed that is monitored for changes. |
| GeotriggerId | Gets a unique ID for the Geotrigger. |
| MessageExpression | Gets or sets an ArcadeExpression that controls the notification details when a Geotrigger is met. |
| Name | Gets or sets the name of the Geotrigger. |
| RequestedActions | Gets a list of strings indicating the set of requested actions when a notification is delivered. |
Applies to
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.12 - 100.15 |
| .NET 6.0 | 100.13 - 100.15 |
| .NET 6.0 Windows | 100.13 - 100.15 |
| .NET Framework | 100.12 - 100.15 |
| .NET 5 | 100.12 |
| .NET Core 3.1 | 100.12 |
| Xamarin.Android | 100.12 - 100.15 |
| Xamarin.iOS | 100.12 - 100.15 |
| UWP | 100.12 - 100.15 |