AndroidSettings class
Represents different Android specific settings with which you can set a value other then the default value of the setting.
- Inheritance
-
- Object
- LocationSettings
- AndroidSettings
Constructors
- AndroidSettings({bool forceLocationManager = false, LocationAccuracy accuracy = LocationAccuracy.best, int distanceFilter = 0, Duration? intervalDuration, Duration? timeLimit, ForegroundNotificationConfig? foregroundNotificationConfig, bool useMSLAltitude = false})
-
Initializes a new
AndroidSpecificSettings
instance with default values.
Properties
- accuracy → LocationAccuracy
-
Defines the desired accuracy that should be used to determine the
location data.
finalinherited
- distanceFilter → int
-
The minimum distance (measured in meters) a device must move
horizontally before an update event is generated.
finalinherited
- forceLocationManager → bool
-
Forces the Geolocator plugin to use the legacy LocationManager instead of
the FusedLocationProviderClient (Android only).
final
- foregroundNotificationConfig → ForegroundNotificationConfig?
-
If this is set then the services is started as a Foreground service with a persistent notification
showing the user that the service will continue running in the background.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- intervalDuration → Duration?
-
The desired interval for active location updates.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeLimit → Duration?
-
The timeLimit parameter allows you to specify a timeout interval (by
default no time limit is configured).
finalinherited
- useMSLAltitude → bool
-
Set to true if altitude should be calculated as MSL (EGM2008) from NMEA messages
and reported as the altitude instead of using the geoidal height (WSG84). Setting
this property true will help to align Android altitude to that of iOS which uses MSL.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes the
PlatformSpecificSettings
to a map messageoverride -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited