showRewarded method
Shows a preloaded rewarded ad and returns the reward.
Returns AdReward if the user watched to completion,
or null if skipped, cancelled, or not loaded.
Implementation
@override
Future<AdReward?> showRewarded() async {
showRewardedCallCount++;
final reward = nextRewardedResult;
if (reward != null) {
emitEvent(AdEvent(type: AdEventType.rewardEarned, reward: reward));
}
_rewardedState = AdState.idle;
return reward;
}