loadAndShowInterAd method

  1. @override
void loadAndShowInterAd({
  1. AdModuleWithCallBacks? adModuleCallBacks,
})
override

Implementation

@override
void loadAndShowInterAd({AdModuleWithCallBacks? adModuleCallBacks}) {
  loadInterAd(
      adModuleCallBacks: AdModuleWithCallBacks(
    onAdLoaded: () {
      if (adModuleCallBacks != null) {
        if (adModuleCallBacks.onAdLoaded != null) {
          adModuleCallBacks.onAdLoaded!();
        }
      }
      showInterAd();
    },
    onAdStarted: adModuleCallBacks?.onAdStarted,
    onFailed: adModuleCallBacks?.onFailed,
    onLoadFailed: adModuleCallBacks?.onLoadFailed,
    onRewardSkip: adModuleCallBacks?.onRewardSkip,
    onCloseEvent: adModuleCallBacks?.onCloseEvent,
  ));
}