AgRegionMonitor class

Constructors

AgRegionMonitor()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

getPlatformVersion() → Future<String?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

locationUpdates → Stream<Map<String, dynamic>>
no setter
regionEvents → Stream<Map<String, dynamic>>
no setter

Static Methods

checkLocationPermission() → Future<String>
checkManualLocation({required double latitude, required double longitude}) → Future<List<Map<String, dynamic>>>
Checks if a manual location (latitude, longitude) falls within any active geofence regions Returns a list of regions that contain the specified location Also sends notifications for matching regions
getActiveRegionCount() → Future<int>
getActiveRegionIds() → Future<List<String>>
getActiveRegions() → Future<List<Map<String, dynamic>>>
getEnterNotificationForRegion(String identifier) → Future<Map<String, String>?>
Get enter notification details for a specific region
getExitNotificationForRegion(String identifier) → Future<Map<String, String>?>
Get exit notification details for a specific region
getRegionById(String identifier) → Future<Map<String, dynamic>?>
getRegionsContainingLocation({required double latitude, required double longitude}) → Future<List<Map<String, dynamic>>>
Gets all regions that contain the specified location without triggering notifications This could be implemented in the future for read-only location checks
hasAlwaysLocationPermission() → Future<bool>
hasLocationPermission() → Future<bool>
initialize() → Future<bool>
isLocationInAnyRegion({required double latitude, required double longitude}) → Future<bool>
Checks if a location is within any active regions and returns matching regions This is a convenience method that wraps checkManualLocation
isRegionActive(String identifier) → Future<bool>
removeAllRegions() → Future<bool>
removeRegion(String identifier) → Future<bool>
requestNotificationPermission() → Future<bool>
setNotificationsEnabled(bool enabled) → Future<void>
setNotificationsRepeatEnabled(bool enabled) → Future<void>
setNotificationsRepeatTimer(int timer) → Future<void>
setupCustomGeofenceWithSeparateNotifications({required double latitude, required double longitude, required double radius, required String identifier, bool notifyOnEntry = true, bool notifyOnExit = true, String? enterTitle, String? enterBody, String? exitTitle, String? exitBody}) → Future<void>
Setup a custom geofence with separate enter and exit notifications
setupGeofence({required double latitude, required double longitude, required double radius, required String identifier, bool notifyOnEntry = true, bool notifyOnExit = true, String? notificationTitleEnter, String? notificationBodyEnter, String? notificationTitleExit, String? notificationBodyExit}) → Future<void>
setupKarachiDangerZone() → Future<void>
startMonitoring() → Future<void>
stopAllMonitoring() → Future<void>
stopMonitoring(String identifier) → Future<void>