mirror of
https://github.com/FoggedLens/deflock-app.git
synced 2026-07-06 04:37:56 +02:00
suspected locations background refresh
This commit is contained in:
@@ -61,6 +61,11 @@ class SuspectedLocationState extends ChangeNotifier {
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
/// Start background refresh if needed (non-blocking)
|
||||
Future<void> initBackgroundRefresh({bool offlineMode = false}) async {
|
||||
await _service.initBackgroundRefresh(offlineMode: offlineMode);
|
||||
}
|
||||
|
||||
/// Enable or disable suspected locations
|
||||
Future<void> setEnabled(bool enabled) async {
|
||||
await _service.setEnabled(enabled);
|
||||
|
||||
Reference in New Issue
Block a user