예제 #1
0
        static void RewardVideoDidCompleteCallback(IntPtr interstitialClient)
        {
            RewardVideoClient client = IntPtrToRewardVideoClient(interstitialClient);

            if (client.OnAdVideoFinished != null)
            {
                client.OnAdVideoFinished(client, EventArgs.Empty);
            }
        }
예제 #2
0
        static void RewardVideoDidRewardCallback(IntPtr rewardVideo)
        {
            RewardVideoClient client = IntPtrToRewardVideoClient(rewardVideo);

            if (client.OnAdRewarded != null)
            {
                client.OnAdRewarded(client, EventArgs.Empty);
            }
        }
예제 #3
0
        static void RewardVideoVideoDidStartPlayingCallback(IntPtr interstitialClient)
        {
            RewardVideoClient client = IntPtrToRewardVideoClient(interstitialClient);

            if (client.OnAdStarted != null)
            {
                client.OnAdStarted(client, EventArgs.Empty);
            }
        }
예제 #4
0
        static void RewardVideoDidReceivedAdCallback(IntPtr interstitialClient)
        {
            RewardVideoClient client = IntPtrToRewardVideoClient(interstitialClient);

            if (client.OnAdLoaded != null)
            {
                client.OnAdLoaded(client, EventArgs.Empty);
            }
        }
예제 #5
0
        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);
            }
        }