MethodChannelGeofenceForegroundService class
An implementation of GeofenceForegroundServicePlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- GeofenceForegroundServicePlatform
- MethodChannelGeofenceForegroundService
Constructors
Properties
- backgroundChannel → MethodChannel
-
final
- foregroundChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addGeofence(
{required Zone zone}) → Future< bool> -
This method is used to add a geofence area
override
-
handleTrigger(
{required BackgroundTriggerHandler backgroundTriggerHandler}) → void -
override
-
isForegroundServiceRunning(
) → Future< bool> -
This method is used to check if the geofencing foreground service is running
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeAllGeoFences(
) → Future< bool> -
This method is used to remove all geofence areas
override
-
removeGeofence(
{required String zoneId}) → Future< bool> -
This method is used to remove a geofence area
override
-
startGeofencingService(
{required String notificationChannelId, required String contentTitle, required String contentText, int? serviceId, required Function callbackDispatcher, bool isInDebugMode = false, NotificationIconData? notificationIconData}) → Future< bool> -
This method is used to start the geofencing foreground service
override
-
stopGeofencingService(
) → Future< bool> -
This method is used to stop the geofencing foreground service
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited