NativeAdController constructor

NativeAdController({
  1. AdListener? listener,
  2. DislikeAdListener? dislikeListener,
  3. NativeAdConfiguration? adConfiguration,
  4. AdParam? adParam,
})

Implementation

NativeAdController(
    {this.listener,
    this.dislikeListener,
    NativeAdConfiguration? adConfiguration,
    AdParam? adParam}) {
  _streamNative = EventChannel('$NATIVE_EVENT_CHANNEL/$id');
  _channel = MethodChannel('$NATIVE_METHOD_CHANNEL/$id');
  _channel.setMethodCallHandler(_onMethodCall);
  _adConfiguration = adConfiguration;
  _adParam = adParam;

  Ads.instance.channel.invokeMethod("initNativeAdController", {
    "id": id,
  });
}