AndroidSettings class
Android specific tracking settings.
- Inheritance
-
- Object
- LocatorSettings
- AndroidSettings
Constructors
- AndroidSettings({LocationAccuracy accuracy = LocationAccuracy.NAVIGATION, int interval = 5, double distanceFilter = 0, AndroidNotificationSettings androidNotificationSettings = const AndroidNotificationSettings(), int wakeLockTime = 60, LocationClient client = LocationClient.google})
-
Creates Android settings. Defaults to LocationAccuracy.NAVIGATION,
a 5 second interval and no distance filter.
const
Properties
- accuracy → LocationAccuracy
-
Desired accuracy of the locations.
finalinherited
- androidNotificationSettings → AndroidNotificationSettings
-
Foreground service notification shown while tracking runs.
final
- client → LocationClient
-
Location provider to use. Defaults to LocationClient.google.
final
- distanceFilter → double
-
Minimum distance in meters between two location updates; 0 disables
the filter.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- interval → int
-
Interval between location updates in seconds. Defaults to 5.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- wakeLockTime → int
-
Maximum time in minutes the partial wake lock is held. Defaults to 60.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Serializes the settings for the platform channel.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited