NativeAdController constructor
NativeAdController({
- AdListener? listener,
- DislikeAdListener? dislikeListener,
- NativeAdConfiguration? adConfiguration,
- 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,
});
}