LocationGeotriggerFeed class final
Feed data for a Geotrigger created from a 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 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 LocationDataSource to provide the device location. Set the LocationGeotriggerFeed.locationDataSource to your LocationDataSource - for example, using the 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 FeatureLayer that is FloorAware, and the LocationDataSource used to create the GeotriggerFeed includes LocationSourcePropertiesKeys.floor information, then fences will only be entered when they are intersected by an ArcGISLocation 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 GeoModel that includes a valid GeoModelFloorDefinition. All layers and tables that are used by the floor definition are loaded when the GeotriggerMonitor is started.
An ArcGISLocation can contain floor property as part of ArcGISLocation.additionalSourceProperties. This is populated automatically by IndoorsLocationDataSource, or can be supplied as part of your own implementation.
- Inheritance
-
- Object
- GeotriggerFeed
- LocationGeotriggerFeed
Constructors
- LocationGeotriggerFeed({LocationDataSource? locationDataSource})
-
Constructs a LocationGeotriggerFeed with a LocationDataSource.
factory
Properties
- filter ↔ ArcadeExpression?
-
An ArcadeExpression that controls whether an update from the
LocationGeotriggerFeed is sent to a GeotriggerMonitor.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- locationDataSource ↔ LocationDataSource?
-
The location data source that provides updates for the device location.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited