setLoadLibraryEnabled static method
- bool enabled
是否由 SDK 自动加载 libtencentloc.so。必须在 init 之前调用。
Platforms:
- 🅰️ Android:支持
- 🍏 iOS:不支持,抛出
TencentLocationError(错误码unsupportedOnThisPlatform) - 🔶 Harmony:不支持,抛出
TencentLocationError(错误码unsupportedOnThisPlatform)
Parameters:
enabled:true由 SDK 自动加载,false由调用方自行加载。
Implementation
static Future<void> setLoadLibraryEnabled(bool enabled) =>
_platform.setLoadLibraryEnabled(enabled);