private static void RewardVideoDidCloseCallback(IntPtr rewardVideo)
        {
            YumiRewardVideoClient client = IntPtrToRewardVideoClient(rewardVideo);

            if (client.OnAdClosed != null)
            {
                client.OnAdClosed(client, EventArgs.Empty);
            }
        }
        private static void RewardVideoDidStartPlayingCallback(IntPtr rewardVideo)
        {
            YumiRewardVideoClient client = IntPtrToRewardVideoClient(rewardVideo);

            if (client.OnAdStartPlaying != null)
            {
                client.OnAdStartPlaying(client, EventArgs.Empty);
            }
        }
Ejemplo n.º 3
0
        private static void RewardVideoDidFailToShowAdWithErrorCallback(IntPtr rewardVideo, string error)
        {
            YumiRewardVideoClient client = IntPtrToRewardVideoClient(rewardVideo);

            if (client.OnAdFailedToShow != null)
            {
                YumiAdFailedToShowEventArgs args = new YumiAdFailedToShowEventArgs()
                {
                    Message = error
                };
                client.OnAdFailedToShow(client, args);
            }
        }
Ejemplo n.º 4
0
        private static void RewardVideoDidCloseCallback(IntPtr rewardVideo, bool isRewarded)
        {
            YumiRewardVideoClient client = IntPtrToRewardVideoClient(rewardVideo);

            if (client.OnRewardVideoAdClosed != null)
            {
                YumiAdCloseEventArgs args = new YumiAdCloseEventArgs()
                {
                    IsRewarded = isRewarded
                };
                client.OnRewardVideoAdClosed(client, args);
            }
        }