getOaid static method
获取设备 OAID(Android 设备唯一标识)。
Platforms:
- 🅰️ Android:支持
- 🍏 iOS:不支持,抛出
TencentLocationError(错误码unsupportedOnThisPlatform) - 🔶 Harmony:不支持,抛出
TencentLocationError(错误码unsupportedOnThisPlatform)
Returns:
- 设备的 OAID 字符串。
Implementation
static Future<String> getOaid() => _platform.getOaid();