GeofenceMeasure class

Specify the configuration of a circular geofence measure, specifying the:

  • center
  • radius
  • name of the geofence.
Inheritance
Annotations

Constructors

GeofenceMeasure(MeasureType type, {dynamic enabled, GeoPosition center, double radius, String name})
Specify a geofence measure
GeofenceMeasure.fromJson(Map<String, dynamic> json)
factory

Properties

$type String
The runtime class name (type) of this object. Used for deserialization from JSON objects.
read / write, inherited
center GeoPosition
The center of the geofence as a GPS location.
read / write
configuration Map<String, String>
A key-value map holding any application-specific configuration.
read / write, inherited
dwell int
The dwell time of this geofence in miliseconds. If an object is located inside a geofence for more that dwell miliseconds, GeofenceState.DWELL are fired.
read / write
enabled bool
Whether the measure is enabled - i.e. collecting data - when the study is running. A measure is enabled as default.
read / write, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
name String
The name of this geofence.
read / write, override
radius double
The radius of the geofence in meters.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
type MeasureType
The type of measure to do.
read / write, inherited

Methods

adapt(Measure measure) → void
Adapt this Measure to a new value specified in measure.
inherited
addMeasureListener(MeasureListener listener) → void
Add a MeasureListener to this Measure.
inherited
getConfiguration(String key) String
Get value from the configuration for this measure.
inherited
hasChanged() Future<void>
Call this method when this measure has changed.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
registerFromJson(Function fromJsonFunction) → void
Use this method to register a custom fromJson function for this class in the FromJsonFactory.
inherited
removeMeasureListener(MeasureListener listener) → void
Remove a MeasureListener to this Measure.
inherited
restore() → void
Restore this Measure to its original value before adapt was called. [...]
inherited
setConfiguration(String key, String configuration) → void
Add a key-value pair as configuration for this measure.
inherited
toJson() Map<String, dynamic>
Return a JSON encoding of this object.
override
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Properties

fromJsonFunction Function
read-only, override