setIosAllowsBackgroundLocationUpdates method
- 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));