loadAndShowRewardAd method
void
loadAndShowRewardAd(
{ - AdModuleWithCallBacks? adModuleCallBacks,
})
override
Implementation
@override
void loadAndShowRewardAd({AdModuleWithCallBacks? adModuleCallBacks}) {
loadRewardAd(
adModuleCallBacks: AdModuleWithCallBacks(
onAdLoaded: () {
showRewardAd(
adModuleCallBacks: adModuleCallBacks,
);
},
onCloseEvent: (){
if (adModuleCallBacks != null) {
if (adModuleCallBacks.onCloseEvent != null) {
adModuleCallBacks.onCloseEvent!();
}
}
},
onAdStarted: adModuleCallBacks?.onAdStarted,
onFailed: adModuleCallBacks?.onFailed,
onLoadFailed: adModuleCallBacks?.onLoadFailed,
onRewardSkip: adModuleCallBacks?.onRewardSkip,
),
);
}