onUserEarnedReward method

dynamic onUserEarnedReward(
  1. AdWithoutView ad,
  2. RewardItem reward
)

Implementation

onUserEarnedReward(AdWithoutView ad, RewardItem reward) async {
  await getRecompenseAds();
  logCat(
      '$RewardedAd [$ad] with reward $RewardItem(${reward.amount}, ${reward.type})');
  setRewardAmount(action: 1);
  showDialogRecompense();
  //setShowProgressBar(show: false);
}