private static void FullScreenVideoAd_OnVideoErrorMethod(int context) { UnityDispatcher.PostTask(() => { IFullScreenVideoAdInteractionListener listener; if (interactionListeners.TryGetValue(context, out listener)) { listener.OnVideoError(); } else { Debug.LogError( "The OnVideoError can not find the context."); } }); }
private static void SplashAd_OnAdTimeOverMethod(int context) { UnityDispatcher.PostTask(() => { ISplashAdInteractionListener listener; if (interactionListeners.TryGetValue(context, out listener)) { listener.OnAdTimeOver(); } else { Debug.LogError( "The SplashAd_OnAdTimeOver can not find the context."); } }); }
private static void FullScreenVideoAd_OnFullScreenVideoAdLoadMethod(IntPtr fullScreenVideoAd, int context) { UnityDispatcher.PostTask(() => { IFullScreenVideoAdListener listener; if (loadListeners.TryGetValue(context, out listener)) { listener.OnFullScreenVideoAdLoad(new FullScreenVideoAd(fullScreenVideoAd)); } else { Debug.LogError( "The OnFullScreenVideoAdLoad can not find the context."); } }); }
private static void ExpressSplashAd_OnAdClickMethod(int context, int type) { UnityDispatcher.PostTask(() => { ISplashAdInteractionListener listener; if (interactionListeners.TryGetValue(context, out listener)) { listener.OnAdClicked(type); } else { Debug.LogError( "The SplashAd_OnAdClick can not find the context."); } }); }
private static void RewardVideoAd_OnVideoCompleteMethod(int context) { UnityDispatcher.PostTask(() => { IRewardAdInteractionListener listener; if (interactionListeners.TryGetValue(context, out listener)) { listener.OnVideoComplete(); } else { Debug.LogError( "The OnVideoComplete can not find the context."); } }); }
private static void RewardVideoAd_OnRewardVideoAdLoadMethod(IntPtr rewardVideoAd, int context) { UnityDispatcher.PostTask(() => { IRewardVideoAdListener listener; if (loadListeners.TryGetValue(context, out listener)) { listener.OnExpressRewardVideoAdLoad(new ExpressRewardVideoAd(rewardVideoAd)); } else { Debug.LogError( "The OnExpressRewardVideoAdLoad can not find the context."); } }); }
private static void RewardVideoAd_OnRewardVideoCachedMethod(int context) { UnityDispatcher.PostTask(() => { IRewardVideoAdListener listener; if (loadListeners.TryGetValue(context, out listener)) { listener.OnRewardVideoCached(); } else { Debug.LogError( "The OnRewardVideoCached can not find the context."); } }); }
private static void NativeAd_OnAdCloseMethod(int context) { UnityDispatcher.PostTask(() => { IInteractionAdInteractionListener listener; if (interactionListeners.TryGetValue(context, out listener)) { listener.OnAdDismiss(); } else { Debug.LogError( "The OnAdClose can not find the context."); } }); }
private static void ExpressAd_DidClickMethod(int index, int context) { UnityDispatcher.PostTask(() => { IExpressAdInteractionListener listener; if (interactionListeners.TryGetValue(context, out listener)) { listener.OnAdClicked(null); } else { Debug.LogError( "The ExpressAd_DidClick can not find the context."); } }); }
private static void ExpressSplashAd_OnAdCloseMethod(int context) { UnityDispatcher.PostTask(() => { ISplashAdInteractionListener listener; if (interactionListeners.TryGetValue(context, out listener)) { interactionListeners.Remove(context); listener.OnAdSkip(); } else { Debug.LogError( "The ExpressSplashAd_OnAdClose can not find the context."); } }); }
private static void ExpressAd_OnAdDidCloseMethod(int context) { //Debug.Log("chaors ExpressAd_OnAdDislikeMethod") UnityDispatcher.PostTask(() => { IExpressAdInteractionListener listener; if (interactionListeners.TryGetValue(context, out listener)) { listener.OnAdClose(null); } else { Debug.LogError( "The ExpressAd_OnAdDidCloseMethod can not find the context."); } }); }
private static void RewardVideoAd_OnRewardVerifyMethod( bool rewardVerify, int rewardAmount, string rewardName, int context) { UnityDispatcher.PostTask(() => { IRewardAdInteractionListener listener; if (interactionListeners.TryGetValue(context, out listener)) { listener.OnRewardVerify(rewardVerify, rewardAmount, rewardName); } else { Debug.LogError( "The OnRewardVerify can not find the context."); } }); }
private static void SplashAd_OnLoadMethod(IntPtr splashAd, int context) { UnityDispatcher.PostTask(() => { ISplashAdListener listener; if (loadListeners.TryGetValue(context, out listener)) { loadListeners.Remove(context); listener.OnSplashAdLoad(new BUSplashAd(splashAd)); } else { Debug.LogError( "The SplashAd_OnLoad can not find the context."); } }); }
private static void ExpressAd_OnAdDislikeMethod(int index, int dislikeID, string dislikeReason, int context) { UnityDispatcher.PostTask(() => { IDislikeInteractionListener listener; if (dislikeListeners.TryGetValue(context, out listener)) { ExpressAd expressAd = expressAds[index]; listener.OnSelected(dislikeID, dislikeReason); } else { Debug.LogError( "The ExpressAd_OnAdDislike can not find the context."); } }); }
private static void ExpressAd_WillVisibleMethod(int index, int context) { UnityDispatcher.PostTask(() => { IExpressAdInteractionListener listener; if (interactionListeners.TryGetValue(context, out listener)) { ExpressAd expressAd = expressAds[index]; listener.OnAdShow(expressAd); } else { Debug.LogError( "The ExpressAd_WillVisible can not find the context."); } }); }
private static void ExpressAd_OnAdViewRenderErrorMethod(int index, int code, string message, int context) { UnityDispatcher.PostTask(() => { IExpressAdInteractionListener listener; if (interactionListeners.TryGetValue(context, out listener)) { ExpressAd expressAd = expressAds[index]; listener.OnAdViewRenderError(expressAd, code, message); } else { Debug.LogError( "The ExpressAd_OnAdViewRenderError can not find the context."); } }); }
private static void ExpressAd_OnAdViewRenderSuccMethod(int index, float width, float height, int context) { UnityDispatcher.PostTask(() => { IExpressAdInteractionListener listener; if (interactionListeners.TryGetValue(context, out listener)) { ExpressAd expressAd = expressAds[index]; listener.OnAdViewRenderSucc(expressAd, width, height); } else { Debug.LogError( "The ExpressAd_OnAdViewRenderSucc can not find the context."); } }); }
private static void ExpressAd_OnLoadErrorMethod(int code, string message, int context) { UnityDispatcher.PostTask(() => { IExpressAdListener listener; if (loadListeners.TryGetValue(context, out listener)) { listener.OnError(code, message); loadListeners.Remove(context); } else { Debug.LogError( "The ExpressAd_OnLoadError can not find the context."); } }); }
private static void NativeAd_OnNativeAdLoadMethod(IntPtr nativeAd, int context) { UnityDispatcher.PostTask(() => { INativeAdListener listener; if (loadListeners.TryGetValue(context, out listener)) { loadListeners.Remove(context); listener.OnNativeAdLoad(null, new NativeAd(nativeAd)); } else { Debug.LogError( "The NativeAd_OnNativeAdLoad can not find the context."); } }); }
private static void ExpressAd_OnLoadMethod(IntPtr expressAd, int context) { UnityDispatcher.PostTask(() => { ; IExpressAdListener listener; if (loadListeners.TryGetValue(context, out listener)) { loadListeners.Remove(context); listener.OnExpressBannerAdLoad(new ExpressBannerAd(expressAd)); } else { Debug.LogError( "The ExpressAd_OnLoad can not find the context."); } }); }
private static void NativeAd_OnNativeAdLoadMethod(IntPtr nativeAd, int context, int slotType) { UnityDispatcher.PostTask(() => { INativeAdListener listener; if (loadListeners.TryGetValue(context, out listener)) { loadListeners.Remove(context); /** * BUAdSlotAdTypeBanner = 1, // banner ads * BUAdSlotAdTypeInterstitial = 2, // interstitial ads * BUAdSlotAdTypeFeed = 5, */ AdSlotType adType = AdSlotType.Banner; if (slotType == 1) { adType = AdSlotType.Banner; } else if (slotType == 2) { adType = AdSlotType.InteractionAd; } else if (slotType == 5) { adType = AdSlotType.Feed; } listener.OnNativeAdLoad(null, new NativeAd(nativeAd, adType)); } else { Debug.LogError( "The NativeAd_OnNativeAdLoad can not find the context."); } }); }
public void onAdVideoBarClick() { UnityDispatcher.PostTask( () => this.listener.OnAdVideoBarClick()); }
public void onExitInstall() { UnityDispatcher.PostTask(this.callback); }
public void onVideoError() { UnityDispatcher.PostTask(() => this.listener.OnVideoError()); }
public void onRewardVerify( bool rewardVerify, int rewardAmount, string rewardName) { UnityDispatcher.PostTask(() => this.listener.OnRewardVerify( rewardVerify, rewardAmount, rewardName)); }
public void onAdSkip() { UnityDispatcher.PostTask(() => this.listener.OnAdSkip()); }
public void onAdShow(AndroidJavaObject view, int var2) { UnityDispatcher.PostTask( () => this.listener.OnAdShow(var2)); }
public void onAdTimeOver() { UnityDispatcher.PostTask(() => this.listener.OnAdTimeOver()); }
public void onVideoError(int var1, int var2) { UnityDispatcher.PostTask( () => this.listener.OnVideoError(var1, var2)); }
public void onVideoComplete() { UnityDispatcher.PostTask(() => this.listener.OnVideoComplete()); }