void onInterstitialDisplayed(AndroidJavaObject ad) { this.interstitialAd.executeOnMainThread(() => { if (interstitialAd.InterstitialAdWillLogImpression != null) { interstitialAd.InterstitialAdWillLogImpression(); } }); }
private void onInterstitialDisplayed(AndroidJavaObject ad) { interstitialAd.executeOnMainThread(delegate { if (interstitialAd.InterstitialAdWillLogImpression != null) { interstitialAd.InterstitialAdWillLogImpression(); } }); }
// Not executing on the main thread - otherwise InterstitialAdWillLogImpression // will only be called after the Interstitial activity be destroyed void onLoggingImpression(AndroidJavaObject ad) { if (interstitialAd.InterstitialAdWillLogImpression != null) { interstitialAd.ExecuteOnMainThread(() => { interstitialAd.InterstitialAdWillLogImpression(); }); } }