InterstitialAd constructor
InterstitialAd({
- required String adSlotId,
- @deprecated bool? openInHmsCore,
- AdParam? adParam,
- AdListener? listener,
- RewardAdListener? rewardAdListener,
Implementation
InterstitialAd({
required this.adSlotId,
@deprecated this.openInHmsCore,
AdParam? adParam,
AdListener? listener,
RewardAdListener? rewardAdListener,
}) : this.adParam = adParam ?? AdParam() {
interstitialAds[id] = this;
_streamInterstitial = EventChannel('$INTERSTITIAL_EVENT_CHANNEL/$id');
_streamReward = EventChannel('$REWARD_EVENT_CHANNEL/$rId');
_listener = listener;
_rewardAdListener = rewardAdListener;
}