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