geofence_service library
Classes
- Activity
- A model representing the user's activity.
- AndroidForegroundServiceType
- Constant to specify the foreground service type on Android 14 and higher.
- AndroidNotificationOptions
- Notification options for Android platform.
- FlLocation
- FlLocationPlatform
-
The interface that implementations of
fl_location
must extend. - FlutterActivityRecognition
- A class that provides an activity recognition API.
- FlutterForegroundTask
- A class that implements foreground task and provides useful utilities.
- ForegroundTaskOptions
- Data class with foreground task options.
- Geofence
- A model representing a geofence.
- GeofenceRadius
- A model representing the radius of Geofence.
- GeofenceService
- A class provides geofence management and geo-fencing.
- GeofenceServiceOptions
- Options for GeofenceService.
- IOSNotificationOptions
- Notification options for iOS platform.
- 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.
- TaskHandler
- A class that implements a task handler.
- WillStartForegroundTask
- A widget that can start the foreground service when the app is minimized or closed.
- WithForegroundTask
- A widget that prevents the app from closing when the foreground service is running.
Enums
- ActivityConfidence
- Defines the confidence of activity.
- ActivityType
- Defines the type of activity.
- ErrorCodes
- Error codes that may occur in the service.
- GeofenceRadiusSortType
- Defines the sort type of the geofence radius. If you have set multiple radius for one geofence, multiple radius can come in at the same time. At this time, you can control the order in which the radius comes in by referring to the radius meters.
- GeofenceStatus
- Defines the type of the geofence status.
- LocationAccuracy
- An enumeration of location accuracy.
- LocationPermission
- An enumeration of location permission.
- LocationServicesStatus
- An enumeration of location services status.
- NotificationPermission
- PermissionRequestResult
- Defines the type of permission request result.
- ResourcePrefix
- The resource prefix of the notification icon.
- ResourceType
- The resource type of the notification icon.
Functions
-
getActivityConfidenceFromString(
String? value) → ActivityConfidence -
Returns the activity confidence from
value
. -
getActivityTypeFromString(
String? value) → ActivityType -
Returns the activity type from
value
. -
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
. -
getNotificationPermissionFromIndex(
int? index) → NotificationPermission -
getPermissionRequestResultFromString(
String? value) → PermissionRequestResult -
Returns the permission request result from
value
.
Typedefs
- ActivityChanged = void Function(Activity prevActivity, Activity currActivity)
- Callback function to handle activity changes.
-
GeofenceStatusChanged
= Future<
void> Function(Geofence geofence, GeofenceRadius geofenceRadius, GeofenceStatus geofenceStatus, Location location) - Callback function to handle geofence status changes.
- LocationChanged = void Function(Location location)
- Callback function to handle location changes.
Exceptions / Errors
- ForegroundTaskException
- ForegroundTaskException