Ejemplo n.º 1
0
        static void RewardVideoDidCompleteCallback(IntPtr interstitialClient)
        {
            RewardVideoClient client = IntPtrToRewardVideoClient(interstitialClient);

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

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

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

            if (client.OnAdLoaded != null)
            {
                client.OnAdLoaded(client, EventArgs.Empty);
            }
        }
Ejemplo n.º 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);
            }
        }