geofence_service library Null safety

Classes

Activity
Data class that define user activity.
Geofence
Data class to create geofence.
GeofenceRadius
Data class to create radius of Geofence.
GeofenceService
Class for creating and monitoring geofence.
WithForegroundService
Use to run the geofence service in the background. Declare between the MaterialApp and Scaffold widgets.

Functions

getActivityConfidenceFromString(String value) ActivityConfidence
Return the activity confidence from value.
getActivityTypeFromString(String value) ActivityType
Return the activity type from value.
getErrorCodesFromError(dynamic error) ErrorCodes?
Return the error codes from error.
getErrorCodesFromString(String value) ErrorCodes?
Return the error codes from value.

Enums

ActivityConfidence
Define the confidence of activity.
ActivityType
Define the type of activity.
ErrorCodes
Define the error codes that may occur in the service.
GeofenceRadiusSortType
Define 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
Define the type of geofence status.

Typedefs

ActivityChangedCallback(Activity prevActivity, Activity currActivity) → void
Callback function to notify activity changes.
GeofenceStatusChangedCallback(Geofence geofence, GeofenceRadius geofenceRadius, GeofenceStatus geofenceStatus) Future<void>
Callback function to notify geofence status changes.