Beispiel #1
0
 public VideoAdListener(
     FeedAd ad,
     IVideoAdListener listener)
     : base("com.bytedance.sdk.openadsdk.TTNativeAd$VideoAdListener")
 {
     this.ad       = ad;
     this.listener = listener;
 }
Beispiel #2
0
            public void onFeedAdLoad(AndroidJavaObject list)
            {
                var size = list.Call <int>("size");
                var ads  = new FeedAd[size];

                for (int i = 0; i < size; ++i)
                {
                    ads[i] = new FeedAd(
                        list.Call <AndroidJavaObject>("get", i));
                }

                UnityDispatcher.PostTask(
                    () => this.listener.OnFeedAdLoad(ads));
            }