removeGeofence static method

Future<bool> removeGeofence(
  1. String identifier
)

Removes a Geofence having the given Geofence.identifier`.

Example

BackgroundGeolocation.removeGeofence("Home").then((bool success) {
  print('[removeGeofence] success');
}).catchError((error) {
  print('[removeGeofence] FAILURE: ${error}');
});

Implementation

static Future<bool> removeGeofence(String identifier) async {
  return (await _methodChannel.invokeMethod<bool>(
      'removeGeofence', identifier)) as FutureOr<bool>;
}