myInterRewardHandler static method
Implementation
static Future<dynamic> myInterRewardHandler(
MethodCall methodCall,
RewardAdCallbacks rewardAdCallbacks,
) async {
print("Printing Reward Method Name");
print(methodCall.method);
switch (methodCall.method) {
case "loaded_reward_inter":
rewardAdCallbacks.onLoad(methodCall.arguments);
break;
case "fail_load_reward_inter":
print(methodCall.arguments);
rewardAdCallbacks.onAdLoadFail(methodCall.arguments);
break;
case "open_reward_inter":
rewardAdCallbacks.onAdOpen(methodCall.arguments);
break;
case "fail_open_reward_inter":
rewardAdCallbacks.onAdOpenFail(methodCall.arguments);
break;
case "close_reward_inter":
print("Reward Close =========>");
rewardAdCallbacks.onClose(methodCall.arguments);
break;
case "rewarded_reward_inter":
print("Reward Rewarded =========>");
rewardAdCallbacks.onRewardEarned(methodCall.arguments);
break;
default:
// rewardAdCallbacks.onClose(methodCall.arguments);
print("Default Case ${methodCall.method}");
}
}