GeofenceServiceImpl class

Implementation of GeofenceService using method channel.

Implemented types

Constructors

GeofenceServiceImpl(LocusInterface _instanceProvider())
Creates a geofence service with the given Locus interface provider.

Properties

events → Stream<GeofenceEvent>
Stream of geofence crossing events.
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
polygonEvents → Stream<PolygonGeofenceEvent>
Stream of polygon geofence events.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
workflowEvents → Stream<GeofenceWorkflowEvent>
Stream of geofence workflow events.
no setteroverride

Methods

add(Geofence geofence) → Future<bool>
Adds a single geofence.
override
addAll(List<Geofence> geofences) → Future<bool>
Adds multiple geofences.
override
addPolygon(PolygonGeofence polygon) → Future<bool>
Adds a polygon geofence.
override
addPolygons(List<PolygonGeofence> polygons) → Future<int>
Adds multiple polygon geofences.
override
clearWorkflows() → void
Clears all registered workflows.
override
exists(String identifier) → Future<bool>
Checks if a geofence exists.
override
get(String identifier) → Future<Geofence?>
Gets a geofence by identifier.
override
getAll() → Future<List<Geofence>>
Gets all registered geofences.
override
getAllPolygons() → Future<List<PolygonGeofence>>
Gets all registered polygon geofences.
override
getPolygon(String identifier) → Future<PolygonGeofence?>
Gets a polygon geofence by identifier.
override
getWorkflowState(String workflowId) → GeofenceWorkflowState?
Gets the current state of a workflow.
override
isInActiveGeofence() → Future<bool>
Checks if currently inside any active geofence.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onGeofence(void callback(GeofenceEvent), {Function? onError}) → StreamSubscription<GeofenceEvent>
Subscribes to geofence events.
override
onGeofencesChange(void callback(dynamic), {Function? onError}) → StreamSubscription
Subscribes to geofence list changes.
override
onWorkflowEvent(void callback(GeofenceWorkflowEvent), {Function? onError}) → StreamSubscription<GeofenceWorkflowEvent>
Subscribes to workflow events.
override
polygonExists(String identifier) → Future<bool>
Checks if a polygon geofence exists.
override
registerWorkflows(List<GeofenceWorkflow> workflows) → void
Registers geofence workflows.
override
remove(String identifier) → Future<bool>
Removes a geofence by identifier.
override
removeAll() → Future<bool>
Removes all geofences.
override
removeAllPolygons() → Future<void>
Removes all polygon geofences.
override
removePolygon(String identifier) → Future<bool>
Removes a polygon geofence by identifier.
override
startMonitoring() → Future<bool>
Starts geofence-only monitoring mode.
override
stopWorkflows() → void
Stops all active workflows.
override
toString() → String
A string representation of this object.
inherited

Operators

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