PolyGeofenceService class

A class provides polygon geofence management and geo-fencing.

Properties

hashCode int
The hash code for this object.
no setterinherited
isRunningService bool
Returns whether the service is running.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addLocationChangeListener(LocationChanged listener) → void
Register a closure to be called when the Location changes.
addLocationServicesStatusChangeListener(ValueChanged<bool> listener) → void
Register a closure to be called when the location services status changes.
addPolyGeofence(PolyGeofence polyGeofence) → void
Add polygon geofence.
addPolyGeofenceList(List<PolyGeofence> polyGeofenceList) → void
Add polygon geofence list.
addPolyGeofenceStatusChangeListener(PolyGeofenceStatusChanged listener) → void
Register a closure to be called when the PolyGeofenceStatus changes.
addStreamErrorListener(ValueChanged listener) → void
Register a closure to be called when a stream error occurs.
clearAllListeners() → void
Clears all listeners registered with the service.
clearPolyGeofenceList() → void
Clear polygon geofence list.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() → void
Pause PolyGeofenceService.
removeLocationChangeListener(LocationChanged listener) → void
Remove a previously registered closure from the list of closures that are notified when the Location changes.
removeLocationServicesStatusChangeListener(ValueChanged<bool> listener) → void
Remove a previously registered closure from the list of closures that are notified when the location services status changes.
removePolyGeofence(PolyGeofence polyGeofence) → void
Remove polygon geofence.
removePolyGeofenceById(String id) → void
Remove polygon geofence by id.
removePolyGeofenceList(List<PolyGeofence> polyGeofenceList) → void
Remove polygon geofence list.
removePolyGeofenceStatusChangeListener(PolyGeofenceStatusChanged listener) → void
Remove a previously registered closure from the list of closures that are notified when the PolyGeofenceStatus changes.
removeStreamErrorListener(ValueChanged listener) → void
Remove a previously registered closure from the list of closures that are notified when a stream error occurs.
resume() → void
Resume PolyGeofenceService.
setup({int? interval, int? accuracy, int? loiteringDelayMs, int? statusChangeDelayMs, bool? allowMockLocations, bool? printDevLog}) PolyGeofenceService
Setup PolyGeofenceService. Some options do not change while the service is running.
start([List<PolyGeofence>? polyGeofenceList]) Future<void>
Start PolyGeofenceService. It can be initialized with polyGeofenceList.
stop() Future<void>
Stop PolyGeofenceService. Note that the registered geofence list is cleared when this function is called.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance PolyGeofenceService
Instance of PolyGeofenceService.
final