isSupported method

  1. @override
Future<bool> isSupported()
override

查询当前设备是否支持 OAID 或 AAID

Implementation

@override
Future<bool> isSupported() async {
  try {
    final result = await methodChannel.invokeMethod<bool>('isSupported');
    return result ?? false;
  } on PlatformException catch (e) {
    throw OaidException(code: e.code, message: e.message);
  }
}