示例#1
0
            public void onNativeAdLoad(AndroidJavaObject list)
            {
                var size = list.Call <int>("size");
                var ads  = new NativeAd[size];

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

                UnityDispatcher.PostTask(
                    () => this.listener.OnNativeAdLoad(list, null));
            }
示例#2
0
 /// <summary>
 /// Load the native Ad asynchronously and notice on listener.
 /// </summary>
 public void LoadNativeAd(AdSlot adSlot, INativeAdListener listener)
 {
     NativeAd.LoadNativeAd(adSlot, listener);
 }