public VideoAdListener( FeedAd ad, IVideoAdListener listener) : base("com.bytedance.sdk.openadsdk.TTNativeAd$VideoAdListener") { this.ad = ad; this.listener = listener; }
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)); }