Archived
feat(android,interface): Handle battery optimisation
This commit is contained in:
1 parent
497ac279cc
commit
0d4f0c59cc
11 files changed
+165
-5
No files matched your search
@@ -10,4 +10,14 @@ class AndroidPlatformImplementation extends PlatformImplementation {
|
||||
Future<String> getPersistentDataPath() {
|
||||
return MoxplatformInterface.api.getPersistentDataPath();
|
||||
}
|
||||
|
||||
@override
|
||||
Future<bool> isIgnoringBatteryOptimizations() {
|
||||
return MoxplatformInterface.api.isIgnoringBatteryOptimizations();
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> openBatteryOptimisationSettings() {
|
||||
return MoxplatformInterface.api.openBatteryOptimisationSettings();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user