private static void RewardedAdDidRewardCallback( IntPtr rewardedAdClient, int amount, string type) { RewardedAdClient client = IntPtrToRewardedAdClient(rewardedAdClient); Reward reward = new Reward(amount, type); if (client.OnRewarded != null) { client.OnRewarded(client, reward); } }
private static void RewardedAdDidDismissCallback( IntPtr rewardedAdClient) { RewardedAdClient client = IntPtrToRewardedAdClient( rewardedAdClient); if (client.OnRewardedAdDismissed != null) { client.OnRewardedAdDismissed(client, EventArgs.Empty); } }
private static void RewardedAdWillAppearCallback( IntPtr rewardedAdClient) { RewardedAdClient client = IntPtrToRewardedAdClient( rewardedAdClient); if (client.OnRewardedAdShown != null) { client.OnRewardedAdShown(client, EventArgs.Empty); } }
private static void RewardedAdWillLeaveApplicationCallback( IntPtr rewardedAdClient) { RewardedAdClient client = IntPtrToRewardedAdClient( rewardedAdClient); if (client.OnRewardedAdLeftApplication != null) { client.OnRewardedAdLeftApplication(client, EventArgs.Empty); } }
private static void RewardedAdWillPresentScreenCallback( IntPtr rewardedAdClient) { RewardedAdClient client = IntPtrToRewardedAdClient( rewardedAdClient); if (client.OnRewardedAdOpened != null) { client.OnRewardedAdOpened(client, EventArgs.Empty); } }
private static void RewardedAdDidFailToShowCallback( IntPtr rewardedAdClient, string error) { RewardedAdClient client = IntPtrToRewardedAdClient( rewardedAdClient); if (client.OnRewardedAdFailedToShow != null) { AdFailureEventArgs args = new AdFailureEventArgs() { Message = error }; client.OnRewardedAdFailedToShow(client, args); } }