void onError(AndroidJavaObject ad, AndroidJavaObject error) { string errorMessage = error.Call <string> ("getErrorMessage"); this.nativeAd.executeOnMainThread(() => { if (nativeAd.NativeAdDidFailWithError != null) { nativeAd.NativeAdDidFailWithError(errorMessage); } }); }
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); } }); }