static void RewardVideoDidCompleteCallback(IntPtr interstitialClient) { RewardVideoClient client = IntPtrToRewardVideoClient(interstitialClient); if (client.OnAdVideoFinished != null) { client.OnAdVideoFinished(client, EventArgs.Empty); } }
static void RewardVideoDidRewardCallback(IntPtr rewardVideo) { RewardVideoClient client = IntPtrToRewardVideoClient(rewardVideo); if (client.OnAdRewarded != null) { client.OnAdRewarded(client, EventArgs.Empty); } }
static void RewardVideoVideoDidStartPlayingCallback(IntPtr interstitialClient) { RewardVideoClient client = IntPtrToRewardVideoClient(interstitialClient); if (client.OnAdStarted != null) { client.OnAdStarted(client, EventArgs.Empty); } }
static void RewardVideoDidReceivedAdCallback(IntPtr interstitialClient) { RewardVideoClient client = IntPtrToRewardVideoClient(interstitialClient); if (client.OnAdLoaded != null) { client.OnAdLoaded(client, EventArgs.Empty); } }
static void RewardVideoDidFailToReceiveAdWithErrorCallback(IntPtr interstitialClient, string error) { RewardVideoClient client = IntPtrToRewardVideoClient(interstitialClient); if (client.OnAdFailedToLoad != null) { AdFailedEventArgs args = new AdFailedEventArgs() { Message = error }; client.OnAdFailedToLoad(client, args); } }