setLoadLibraryEnabled static method

Future<void> setLoadLibraryEnabled(
  1. bool enabled
)

是否由 SDK 自动加载 libtencentloc.so必须在 init 之前调用

Platforms:

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

Parameters:

  • enabledtrue 由 SDK 自动加载,false 由调用方自行加载。

Implementation

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