internal/background_callback library

Classes

BackgroundChannel
Names shared with the Android and iOS implementations of the background channel. Changing a value here requires the same change on both platforms.
GeofenceBackgroundDispatcher
Runs in the background isolate and forwards region events to the callback registered with GeofencingFlutterPlugin.registerBackgroundRegionCallback.

Functions

geofencingCallbackDispatcher() → void
Entry point executed by the platform in a background isolate when a region event is received while no Flutter engine of the application is running.

Typedefs

CallbackResolver = Function? Function(int rawHandle)
Signature used to resolve a raw callback handle back to its function. Injected in tests, defaults to PluginUtilities.getCallbackFromHandle.
GeofenceRegionCallback = FutureOr<void> Function(Region region)
Signature of the Dart function woken by the plugin when a geofence region event is delivered while the application is in the background or has been terminated.