setSystemCacheEnabled static method

Future<void> setSystemCacheEnabled(
  1. bool enabled
)

是否允许定位失败时返回系统缓存位置。

Platforms:

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

Parameters:

  • enabledtrue 允许返回系统缓存位置,false 禁止。

Implementation

static Future<void> setSystemCacheEnabled(bool enabled) =>
    _platform.setSystemCacheEnabled(enabled);