Location Geotrigger Feed
Feed data for a Geotrigger created from a com.arcgismaps.location.LocationDataSource. 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 underlying location data source must be started. If you call GeotriggerMonitor.stop, the underlying com.arcgismaps.location.LocationDataSource will not be stopped for you. For example, it may continue to receive GPS readings.
If the LocationGeotriggerFeed is from a Geotrigger defined in a GeotriggersInfo, you must supply a com.arcgismaps.location.LocationDataSource to provide the device location. Set the LocationGeotriggerFeed.locationDataSource to your com.arcgismaps.location.LocationDataSource - for example, using the com.arcgismaps.mapping.view.LocationDisplay.dataSource.
A FenceGeotrigger can also take into account floors within buildings. If the feature table used to create the FeatureFenceParameters is referenced by a com.arcgismaps.mapping.layers.FeatureLayer that is com.arcgismaps.mapping.floor.FloorAware, and the com.arcgismaps.location.LocationDataSource used to create the GeotriggerFeed includes com.arcgismaps.location.Location.SourceProperties.Keys.floor information, then fences will only be entered when they are intersected by a com.arcgismaps.location.Location on the correct floor. If the fence or location data does not include valid floor information, the floor is ignored and the fence is entered when it is intersected by the location.
A floor aware feature layer or table must be part of a com.arcgismaps.mapping.GeoModel that includes a valid com.arcgismaps.mapping.floor.GeoModelFloorDefinition. All layers and tables that are used by the floor definition are loaded when the GeotriggerMonitor is started.
A com.arcgismaps.location.Location can contain floor property as part of com.arcgismaps.location.Location.additionalSourceProperties. This is populated automatically by com.arcgismaps.location.IndoorsLocationDataSource, or can be supplied as part of your own implementation.
Since
200.1.0
Constructors
Constructs a LocationGeotriggerFeed with a LocationDataSource.
Properties
An com.arcgismaps.arcade.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 com.arcgismaps.arcade.ArcadeExpression must evaluate to a boolean where:
The location data source that provides updates for the device location. To receive location updates, the underlying location data source must be started. If you call GeotriggerMonitor.stop, the underlying com.arcgismaps.location.LocationDataSource is not stopped for you. In other words, it may continue to receive GPS readings.