MethodChannelSimpleBgLocation class

An implementation of SimpleBgLocationPlatform that uses method channels.

Inheritance

Properties

hashCode int
The hash code for this object.
no setterinherited
methodChannel MethodChannel
The method channel used to interact with the native platform.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkPermission({bool onlyCheckBackground = false}) Future<LocationPermission>
Returns a Future<LocationPermission> indicating if the user allows the App to access the device's location
override
getAccuracyPermission() Future<LocationAccuracyPermission>
Check which accuracy permission that user approved.
override
getCurrentPosition({bool forceLocationManager = false}) Future<Position?>
Get a single current location fix on the device.
override
getLastKnownPosition({bool forceLocationManager = false}) Future<Position?>
Get the best most recent location currently available.
override
getNotificationActionStream([dynamic failure(dynamic p1)?]) Stream<String>
Android Only The custom notification action button click event stream.
override
getPositionStream([dynamic failure(PositionError)?]) Stream<Position>
The position update stream.
override
isLocationServiceEnabled() Future<bool>
Check device location service is enabled
override
isPowerSaveMode() Future<bool>
Check device Power Save mode
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openAppSettings() Future<bool>
Open the App settings page
override
openLocationSettings() Future<bool>
Opens the location settings page.
override
ready() Future<SBGLState>
Initialize plugin for prepare requestPositionUpdate
override
requestPermission([BackgroundPermissionRationale? rationale]) Future<LocationPermission>
Request permission to access the location of the device.
override
requestPositionUpdate(RequestSettings requestSettings) Future<bool>
Request location change listen.
override
shouldShowRequestPermissionRationale() Future<bool>
Should show request permission rationale for background location. Only for Android. iOS will always return false.
override
stopPositionUpdate() Future<bool>
Stop listen location change.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited