setIosAllowsBackgroundLocationUpdates method

Future<void> setIosAllowsBackgroundLocationUpdates(
  1. bool enabled
)

是否允许后台围栏位置更新。

Platforms:

  • 🅰️ Android:不支持,抛出 TencentLocationError(错误码 unsupportedOnThisPlatform
  • 🍏 iOS:支持
  • 🔶 Harmony:不支持,抛出 TencentLocationError(错误码 unsupportedOnThisPlatform)

Parameters:

  • enabled:是否允许后台位置更新。true 允许,false 禁止。

Implementation

Future<void> setIosAllowsBackgroundLocationUpdates(bool enabled) => _after(
    () => _platform.setIosAllowsBackgroundLocationUpdates(_id, enabled));