GraphicFenceParameters class final
Geotrigger fence parameters data created from graphics.
The graphics used to create a GraphicFenceParameters provide a set of geometries and attributes 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", the fence data is "my target areas".
A GraphicFenceParameters allows you to track a specific set of Graphic objects: these can be a selection of the graphics from a GraphicsOverlay or graphics that are not displayed on a GeoViewController. If you wish to track all of the graphics displayed in a GraphicsOverlay, use a GraphicsOverlayFenceParameters.
A GraphicFenceParameters is created using a list of Graphic objects. The graphics can have point, line, or polygon geometry. A FenceParameters.bufferDistance must be supplied for points or lines.
- Inheritance
-
- Object
- FenceParameters
- GraphicFenceParameters
Constructors
-
GraphicFenceParameters({List<
Graphic> graphics = const [], double bufferDistance = 0}) -
Creates a GraphicFenceParameters that will apply a buffer distance to
any graphics that are added to GraphicFenceParameters.graphics.
factory
Properties
- bufferDistance → double
-
A buffer distance in meters to apply when checking if a FenceGeotrigger
condition is met.
no setterinherited
-
graphics
→ List<
Graphic> -
The graphics to use in the GraphicFenceParameters.
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