ULocationSettings class
Live tracking options: accuracy, distance filter, interval, background, activity. const ULocationSettings(distanceFilter: 10)
- Annotations
Constructors
- ULocationSettings({ULocationAccuracy accuracy = ULocationAccuracy.high, double distanceFilter = 0, Duration interval = const Duration(seconds: 5), bool background = false, bool significantChangesOnly = false, ULocationActivity activity = ULocationActivity.other, bool pauseAutomatically = false, bool showBackgroundIndicator = true, String? notificationTitle, String? notificationText})
-
const
Properties
- accuracy → ULocationAccuracy
-
Accuracy wanted.
final
- activity → ULocationActivity
-
Movement type hint (driving, walking…) for the OS to save battery.
final
- background → bool
-
Keep tracking in the background (Android: foreground service; iOS: needs the "location" background mode).
final
- distanceFilter → double
-
Minimum movement in metres before a new position is reported.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- interval → Duration
-
How often to report (Android, Windows, web; iOS/macOS report on movement).
final
- notificationText → String?
-
Android: text of the "using location" notification in the background.
final
- notificationTitle → String?
-
Android background-tracking notification.
final
- pauseAutomatically → bool
-
iOS: pauses updates when the user stops moving.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showBackgroundIndicator → bool
-
iOS blue status-bar pill while tracking in the background.
final
- significantChangesOnly → bool
-
Battery-friendly: only ~500 m moves (iOS / macOS significant-change service).
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, Object?> - As a map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited