disableBackgroundLocation method
关闭后台定位
Implementation
Future<void> disableBackgroundLocation(bool var1) {
return platform(
android: (pool) async {
await checkClient();
await _androidClient?.disableBackgroundLocation(var1);
},
ios: (pool) async {
await _iosClient?.set_allowsBackgroundLocationUpdates(false);
await _iosClient?.set_pausesLocationUpdatesAutomatically(true);
},
);
}