getOaid static method

Future<String> getOaid()

获取设备 OAID(Android 设备唯一标识)。

Platforms:

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

Returns:

  • 设备的 OAID 字符串。

Implementation

static Future<String> getOaid() => _platform.getOaid();