disableBackgroundLocation method

Future<void> disableBackgroundLocation(
  1. bool var1
)

关闭后台定位

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);
    },
  );
}