AndroidSettings class

Android-specific location settings.

Inheritance

Constructors

AndroidSettings({DeviceLocationAccuracy accuracy = DeviceLocationAccuracy.best, int distanceFilter = 0, Duration? timeLimit, bool forceLocationManager = false, Duration? intervalDuration, ForegroundNotificationConfig? foregroundNotificationConfig})
const

Properties

accuracy DeviceLocationAccuracy
Desired accuracy of the position. Defaults to DeviceLocationAccuracy.best.
finalinherited
distanceFilter int
Minimum distance in meters between updates. 0 (default) emits all.
finalinherited
forceLocationManager bool
Force the use of the legacy LocationManager instead of FusedLocationProviderClient.
final
foregroundNotificationConfig ForegroundNotificationConfig?
When non-null, enables the Android foreground service for the active location stream and uses this configuration for its persistent notification. Required for reliable background tracking on Android 10+.
final
hashCode int
The hash code for this object.
no setterinherited
intervalDuration Duration?
Minimum desired interval between updates.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeLimit Duration?
Maximum time to wait for a position before throwing TimeoutException.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this object to a map sent over the method channel.
override
toString() String
A string representation of this object.
inherited

Operators

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