showRewardAd method
void
showRewardAd(
{ - AdModuleWithCallBacks? adModuleCallBacks,
})
override
Implementation
@override
void showRewardAd({AdModuleWithCallBacks? adModuleCallBacks}) {
if (rewardedAd != null) {
rewardedAd!.show(
onUserEarnedReward: (ad, reward) {
if (adModuleCallBacks != null) {
if (adModuleCallBacks.onCloseEvent != null) {
adModuleCallBacks.onCloseEvent!();
}
}
log("Google-Ad-Network->[Listener]->OnReward Earned");
},
);
return;
}
throw Exception("Please Initialize Ad Before Calling");
}