GeotriggersInfo class final
Presents information on a set of Geotrigger objects defined for a GeoModel.
The author of an ArcGISMap or an ArcGISScene can optionally specify one or more Geotrigger conditions to be monitored when using the data. Once this type is loaded, review the list of GeotriggersInfo.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 GeoModel.geotriggersInfo property.
-
Load the GeotriggersInfo to populate the GeotriggersInfo.geotriggers list.
-
For each Geotrigger in the list, check whether the Geotrigger.feed is of type LocationGeotriggerFeed.
-
Set the LocationGeotriggerFeed.locationDataSource to your LocationDataSource - for example, using the LocationDisplay.dataSource.
-
Create a GeotriggerMonitor for each Geotrigger you want to use.
-
Connect to notifications sent by the GeotriggerMonitor.
-
Call GeotriggerMonitor.start to begin monitoring.
Geotriggers can also take into account floors within buildings. If the GeotriggersInfo is defined as part of a GeoModel that includes a valid GeoModelFloorDefinition, then the list of GeotriggersInfo.geotriggers can take floor information into account. All layers and tables that are used by the floor definition are loaded when a floor aware GeotriggerMonitor is started. To take floors into account when monitoring geotriggers, use a LocationDataSource that includes floor details, such as the IndoorsLocationDataSource.
- Implemented types
- Mixed-in types
Properties
-
geotriggers
→ List<
Geotrigger> -
The set of Geotrigger objects defined for a GeoModel.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- loadError → ArcGISException?
-
The load error.
no setterinherited
- loadStatus → LoadStatus
-
The load status.
no setterinherited
-
onLoadStatusChanged
→ Stream<
LoadStatus> -
A stream that reports changes to the LoadStatus.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cancelLoad(
) → void -
Cancels loading metadata for the object.
inherited
-
load(
) → Future< void> -
Loads the metadata for the object asynchronously.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
retryLoad(
) → Future< void> -
Loads or retries loading metadata for the object asynchronously.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited