addGeofence method

  1. @override
Future<bool> addGeofence(
  1. GeofenceRegion region
)
override

Adds a geofence region to monitor.

Implementation

@override
Future<bool> addGeofence(GeofenceRegion region) async {
  final result = await methodChannel.invokeMethod<bool>(
    'addGeofence',
    region.toMap(),
  );
  return result ?? false;
}