コード例 #1
0
        void onError(AndroidJavaObject ad, AndroidJavaObject error)
        {
            string errorMessage = error.Call <string> ("getErrorMessage");

            this.nativeAd.executeOnMainThread(() => {
                if (nativeAd.NativeAdDidFailWithError != null)
                {
                    nativeAd.NativeAdDidFailWithError(errorMessage);
                }
            });
        }
コード例 #2
0
        private void onError(AndroidJavaObject ad, AndroidJavaObject error)
        {
            string errorMessage = error.Call <string>("getErrorMessage", new object[0]);

            nativeAd.executeOnMainThread(delegate
            {
                if (nativeAd.NativeAdDidFailWithError != null)
                {
                    nativeAd.NativeAdDidFailWithError(errorMessage);
                }
            });
        }