isSupportGps static method
当前设备是否支持 GPS。
Platforms:
- 🅰️ Android:支持
- 🍏 iOS:不支持,抛出
TencentLocationError(错误码unsupportedOnThisPlatform) - 🔶 Harmony:不支持,抛出
TencentLocationError(错误码unsupportedOnThisPlatform)
Returns:
true表示当前设备支持 GPS 模块,否则返回false。
Implementation
static Future<bool> isSupportGps() => _platform.utilsIsSupportGps();