BackgroundTriggerHandler typedef

BackgroundTriggerHandler = Future<bool> Function(String zoneId, GeofenceEventType triggerType)

Function that executes your background trigger. You should return whether the task ran successfully or not.

zoneId Returns the value you provided when registering the geofence.

Implementation

typedef BackgroundTriggerHandler = Future<bool> Function(
  String zoneId,
  GeofenceEventType triggerType,
);