onEnterGeofences method

Future<void> onEnterGeofences(
  1. OnEnteredGeofencesCallback callback
)

Implementation

Future<void> onEnterGeofences(OnEnteredGeofencesCallback callback) async {
  onEnteredGeofencesCallback = callback;
  // Install the native listener only when it was explicitly required as it
  // supposes a computational costs.
  await methodChannel.invokeMethod('geofenceCallbacksRequested');
}