GraphicsOverlayFenceParameters class final
Geotrigger fence parameters data created from a GraphicsOverlay.
The GraphicsOverlay used to create a GraphicsOverlayFenceParameters provides a dynamic set of graphics that define targets for a FenceGeotrigger condition. For example, if the condition is "notify me when my position comes within 50 meters of one of my target areas", "my target areas" are the graphics in the overlay. Changes to the GraphicsOverlay will be reflected in the fences tracked by the Geotrigger.
A GraphicsOverlayFenceParameters allows you to track all of the graphics displayed on the GeoViewController in a GraphicsOverlay. This allows you to track new target areas as they are added to the view and to stop tracking areas that are removed. If you wish to track a subset of the graphics displayed in a GraphicsOverlay, or graphics which are not displayed in a GeoViewController, use a GraphicFenceParameters.
The graphics can have point, line, or polygon geometry. A FenceParameters.bufferDistance must be supplied for points or lines.
- Inheritance
-
- Object
- FenceParameters
- GraphicsOverlayFenceParameters
Constructors
- GraphicsOverlayFenceParameters({required GraphicsOverlay graphicsOverlay, double bufferDistance = 0})
-
Creates a GraphicsOverlayFenceParameters using all of the graphics in
the GraphicsOverlay buffered by the buffer distance.
factory
Properties
- bufferDistance → double
-
A buffer distance in meters to apply when checking if a FenceGeotrigger
condition is met.
no setterinherited
- graphicsOverlay → GraphicsOverlay
-
The GraphicsOverlay to use in the GraphicsOverlayFenceParameters.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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