예제 #1
0
        private static void NormalInterstitialCallback(IntPtr selfPtr, VideoAdCallbackType type)
        {
            GCHandle handle = (GCHandle)selfPtr;
            IOSInterstitialVideoAd instance = (IOSInterstitialVideoAd)handle.Target;

            instance.CallBack(new VideoAdCallbackArgments(type));
        }
예제 #2
0
        private static void ErrorInterstitialCallback(IntPtr selfPtr, VideoAdCallbackType type, int errorCode)
        {
            GCHandle handle = (GCHandle)selfPtr;
            IOSInterstitialVideoAd instance = (IOSInterstitialVideoAd)handle.Target;

            instance.CallBack(new ErrorVideoAdCallbackArgments(type, errorCode));
        }
예제 #3
0
        private static void RewardedVideoAdCallback(IntPtr selfPtr, VideoAdCallbackType type, string currencyName, int currencyAmount)
        {
            GCHandle           handle   = (GCHandle)selfPtr;
            IOSRewardedVideoAd instance = (IOSRewardedVideoAd)handle.Target;

            instance.CallBack(new RewardedVideoAdCallbackArgments(type, new NendAdRewardedItem(currencyName, currencyAmount)));
        }
        private void onResponse(VideoAdCallbackType type, object args)
        {
            switch (type)
            {
            case VideoAdCallbackType.FailedToLoad:
                CallBack(new ErrorVideoAdCallbackArgments(type, (int)args));
                break;

            default:
                CallBack(new VideoAdCallbackArgments(type));
                break;
            }
        }