コード例 #1
0
    public void HandleNativeExpressAdRenderSuccess(object sender, YumiNativeDataEventArgs args)
    {
        statusText.text = "HandleNativeExpressAdRenderSuccess";

        ShowNativeExpressAd(args.nativeData);

        Logger.Log("HandleNativeExpressAdRenderSuccess");
    }
コード例 #2
0
        void onExpressAdClickCloseButton(string uniqueId)
        {
            if (uniqueId == null)
            {
                return;
            }
            YumiNativeDataEventArgs args = new YumiNativeDataEventArgs()
            {
                nativeData = getNativeData(uniqueId)
            };

            OnExpressAdClickCloseButton(this, args);
        }
コード例 #3
0
        void onExpressAdRenderSuccess(string uniqueId)
        {
            if (uniqueId == null)
            {
                return;
            }
            YumiNativeDataEventArgs args = new YumiNativeDataEventArgs()
            {
                nativeData = getNativeData(uniqueId)
            };

            OnExpressAdRenderSuccess(this, args);
        }
コード例 #4
0
        private static void NativeExpressAdDidClickCloseButtonCallback(IntPtr nativeClient, string nativeDataKey)
        {
            YumiNativeClient client = IntPtrToNativeClient(nativeClient);

            if (client.OnExpressAdClickCloseButton != null)
            {
                YumiNativeData model = client.GetNativeAdData(nativeDataKey);

                YumiNativeDataEventArgs args = new YumiNativeDataEventArgs()
                {
                    nativeData = model
                };
                client.OnExpressAdClickCloseButton(client, args);
            }
        }