getAdvertisingIdInfo static method

Future<AdvertisingIdClientInfo> getAdvertisingIdInfo()

Implementation

static Future<AdvertisingIdClientInfo> getAdvertisingIdInfo() async {
  Map<dynamic, dynamic> args = await (Ads.instance.channel.invokeMethod(
    "getAdvertisingIdInfo",
  ));
  String? adId = args["advertisingId"];
  bool? trackingEnabled = args["limitAdTrackingEnabled"];
  return new AdvertisingIdClientInfo(adId, trackingEnabled);
}