SimpleBgLocation class

Constructors

SimpleBgLocation()

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

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 Methods

checkPermission({bool onlyCheckBackground = false}) Future<LocationPermission>
Wraps the SimpleBgLocationPlatform.checkPermission
distance(double startLatitude, double startLongitude, double endLatitude, double endLongitude) double
Calculates the distance between the supplied coordinates in meters.
getAccuracyPermission() Future<LocationAccuracyPermission>
Wraps the SimpleBgLocationPlatform.getAccuracyPermission
getCurrentPosition({bool forceLocationManager = false}) Future<Position?>
Wraps the SimpleBgLocationPlatform.getCurrentPosition
getLastKnowPosition({bool forceLocationManager = false}) Future<Position?>
Wraps the SimpleBgLocationPlatform.getLastKnowPosition
getNotificationStream() Stream<String>
Wraps the SimpleBgLocationPlatform.getNotificationActionStream
getPositionStream([dynamic handleError(PositionError)?]) Stream<Position>
Wraps the SimpleBgLocationPlatform.getPositionStream
isLocationServiceEnabled() Future<bool>
Wraps the SimpleBgLocationPlatform.isLocationServiceEnabled
onNotificationAction(dynamic success(String)) → void
Android Only register a notification action listener.
onPosition(dynamic success(Position), [dynamic failure(PositionError)?]) → void
register a position update listener.
openAppSettings() Future<bool>
Wraps the SimpleBgLocationPlatform.openAppSettings
openLocationSettings() Future<bool>
Wraps the SimpleBgLocationPlatform.openLocationSettings
ready() Future<SBGLState>
Wraps the SimpleBgLocationPlatform.ready Initialize plugin for prepare requestPositionUpdate
removeListener(Function callback) bool
Remove a single event listener.
removeListeners() Future<void>
Remove all registered event listener
requestPermission([BackgroundPermissionRationale? rationale]) Future<LocationPermission>
Wraps the SimpleBgLocationPlatform.requestPermission
requestPositionUpdate(RequestSettings requestSettings) Future<bool>
Wraps the SimpleBgLocationPlatform.requestPositionUpdate
shouldShowRequestPermissionRationale() Future<bool>
Wraps the SimpleBgLocationPlatform.shouldShowRequestPermissionRationale
stopPositionUpdate() Future<bool>
Wraps the SimpleBgLocationPlatform.stopPositionUpdate