BackgroundLocation class

BackgroundLocation plugin to get background lcoation updates in iOS and Android

Constructors

BackgroundLocation()

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

getCurrentLocation() Future<Location>
Get the current location once.
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

locationCallbackStream StreamController<Location>?
getter/setter pair
notificationActionCallback OptLocationCallback?
getter/setter pair

Static Methods

getLocationUpdates(void location(Location)) StreamController<Location>?
Register a function to receive location updates as long as the location service has started
isServiceRunning() Future<bool>
Check if the location update service is running
setAndroidConfiguration(int interval) Future
setAndroidNotification({String? channelID, String? title, String? message, String? icon, String? actionText, OptLocationCallback? actionCallback}) Future
startLocationService({bool startOnBoot = false, int interval = 1000, int fastestInterval = 500, double distanceFilter = 0.0, bool forceAndroidLocationManager = false, LocationPriority priority = LocationPriority.priorityHighAccuracy, LocationCallback? backgroundCallback}) Future
Start receiving location updated
stopLocationService() Future
Stop receiving location updates