poly_geofence_service library Null safety

Classes

AndroidNotificationOptions
Notification options for Android platform.
FlLocation
FlLocationPlatform
The interface that implementations of fl_location must extend.
FlutterForegroundTask
A class that implements foreground task and provides useful utilities.
ForegroundTaskOptions
Data class with foreground task options.
IOSNotificationOptions
Notification options for iOS platform.
LatLng
A model representing the latitude and longitude of GPS.
Location
A data class that represents a location model.
LocationUtils
Utility class for plugins that collect location data.
MethodChannelFlLocation
The FlLocationPlatform implementation that delegates to a MethodChannel.
NotificationButton
The button to display in the notification.
NotificationChannelImportance
The importance of the notification channel. See https://developer.android.com/training/notify-user/channels?hl=ko#importance
NotificationIconData
Data for setting the notification icon.
NotificationPriority
Priority of notifications for Android 7.1 and lower.
NotificationVisibility
The level of detail displayed in notifications on the lock screen.
PolyGeofence
A model representing a polygon geofence.
PolyGeofenceService
A class provides polygon geofence management and geo-fencing.
PolyGeofenceServiceOptions
Options for PolyGeofenceService.
PolyUtils
TaskHandler
A class that implements a task handler.
WillStartForegroundTask
A widget to start the foreground service when the app is minimized or closed. This widget must be declared above the Scaffold widget.
WithForegroundTask
A widget that prevents the app from closing when the foreground service is running. This widget must be declared above the Scaffold widget.

Functions

getErrorCodesFromError(dynamic error) ErrorCodes?
Returns the error codes from error.
getErrorCodesFromString(String value) ErrorCodes?
Returns the error codes from value.
getLocationPermissionFromIndex(int? index) LocationPermission
Get LocationPermission from index.
getLocationServicesStatusFromIndex(int? index) LocationServicesStatus
Get LocationServicesStatus from index.

Enums

ErrorCodes
Error codes that may occur in the service.
LocationAccuracy
An enumeration of location accuracy.
LocationPermission
An enumeration of location permission.
LocationServicesStatus
An enumeration of location services status.
PolyGeofenceStatus
Defines the status of the polygon geofence.
ResourcePrefix
The resource prefix of the notification icon.
ResourceType
The resource type of the notification icon.

Typedefs

LocationChanged = void Function(Location location)
Callback function to handle location changes.
PolyGeofenceStatusChanged = Future<void> Function(PolyGeofence polyGeofence, PolyGeofenceStatus polyGeofenceStatus, Location location)
Callback function to handle polygon geofence status changes.

Exceptions / Errors

ForegroundTaskException
ForegroundTaskException