如果sdk给你这么一个回调,你要怎么调用呢
typedef OnUserEarnedRewardCallback = void Function(
AdWithoutView ad, RewardItem reward);
void onUserEarnedReward(AdWithoutView ad, RewardItem reward) {
// 在这里处理用户获得奖励的逻辑
print('用户获得奖励:${reward.amount} ${reward.type}');
}
OnUserEarnedRewardCallback callback = onUserEarnedReward;
callback(ad, reward);