loadAndShowRewardInter method

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

Implementation

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