Class GeotriggersInfo
Presents a set of Geotrigger objects defined for a GeoModel.
Inheritance
Implements
Namespace: Esri.ArcGISRuntime.Geotriggers
Assembly: Esri.ArcGISRuntime.dll
Syntax
public class GeotriggersInfo : ILoadable
Remarks
The author of a Map or a Scene can optionally specify one or more Geotrigger conditions to be monitored when using the data. Once this type is loaded, review the list of Geotriggers and create a GeotriggerMonitor to monitor each.
When a Geotrigger is defined with a GeotriggerFeed of type LocationGeotriggerFeed, you must supply a LocationDataSource to provide your device location. The general workflow is as follows:
- Get the GeotriggersInfo from the GeotriggersInfo property.
- Load the GeotriggersInfo to populate the Geotriggers list.
- For each Geotrigger in the list, check whether the Feed is of type LocationGeotriggerFeed.
- Set the LocationDataSource to your LocationDataSource - for example, using the DataSource.
- Create a GeotriggerMonitor for each Geotrigger you want to use.
- Connect to notifications sent by the GeotriggerMonitor.
- Call StartAsync() to begin monitoring.
Properties
Name | Description |
---|---|
Geotriggers | Gets the set of Geotrigger objects defined for a GeoModel. |
LoadError | Gets the System.Exception associated with the last load error. |
LoadStatus | Gets the load status. |
Methods
Name | Description |
---|---|
CancelLoad() | Cancel loading metadata for the object. |
LoadAsync() | Load the metadata for the object asynchronously. |
RetryLoadAsync() | Loads or retries loading metadata for the object asynchronously. |
Events
Name | Description |
---|---|
Loaded | Event that is raised when the object is done loading. |
LoadStatusChanged | Event that is raised when the LoadStatus property changes. |
Applies to
Target | Versions |
---|---|
.NET Standard 2.0 | 100.14 - 200.6 |
.NET | 100.14 - 200.6 |
.NET Windows | 100.14 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.14 - 200.6 |
Xamarin.Android | 100.14 - 100.15 |
Xamarin.iOS | 100.14 - 100.15 |
UWP | 100.14 - 200.6 |