GeolocatorApple class
An implementation of GeolocatorPlatform
that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- GeolocatorApple
Constructors
Properties
- forcedLocationManager ↔ bool
-
On Android devices you can set forcedLocationManager
to true to force the plugin to use the
LocationManager
to determine the position instead of theFusedLocationProviderClient
. On iOS this is ignored.getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
bearingBetween(
double startLatitude, double startLongitude, double endLatitude, double endLongitude) → double -
Calculates the initial bearing between two points
inherited
-
checkPermission(
) → Future< LocationPermission> - Returns a Future indicating if the user allows the App to access the device's location.
-
distanceBetween(
double startLatitude, double startLongitude, double endLatitude, double endLongitude) → double -
Calculates the distance between the supplied coordinates in meters.
inherited
-
getCurrentPosition(
{LocationSettings? locationSettings}) → Future< Position> - Returns the current position.
-
getLastKnownPosition(
{bool forceLocationManager = false}) → Future< Position?> - Returns the last known position stored on the users device.
-
getLocationAccuracy(
) → Future< LocationAccuracyStatus> - Returns a Future containing a LocationAccuracyStatus.
-
getPositionStream(
{LocationSettings? locationSettings}) → Stream< Position> -
Fires whenever the location changes inside the bounds of the
desiredAccuracy
. -
getServiceStatusStream(
) → Stream< ServiceStatus> - Fires when the location Service is manually disabled or enabled.
-
isLocationServiceEnabled(
) → Future< bool> - Returns a Future containing a bool value indicating whether location services are enabled on the device.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openAppSettings(
) → Future< bool> - Opens the App settings page.
-
openLocationSettings(
) → Future< bool> - Opens the location settings page.
-
requestPermission(
) → Future< LocationPermission> - Request permission to access the location of the device.
-
requestTemporaryFullAccuracy(
{required String purposeKey}) → Future< LocationAccuracyStatus> - Asks the user for Temporary Precise location access (iOS 14 or above).
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
registerWith(
) → void -
Registers this class as the default instance of
GeolocatorPlatform
.