private static void NormalInterstitialCallback(IntPtr selfPtr, VideoAdCallbackType type) { GCHandle handle = (GCHandle)selfPtr; IOSInterstitialVideoAd instance = (IOSInterstitialVideoAd)handle.Target; instance.CallBack(new VideoAdCallbackArgments(type)); }
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)); }
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; } }