Java Code Examples for com.google.android.gms.ads.AdView#pause()
The following examples show how to use
com.google.android.gms.ads.AdView#pause() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MainActivity.java From BusyBox with Apache License 2.0 | 5 votes |
@Override protected void onPause() { if (!Monetize.isAdsRemoved()) { for (AdView adView : adViewTiers) { if (adView != null) { adView.pause(); } } } super.onPause(); }
Example 2
Source File: MainActivity.java From BusyBox with Apache License 2.0 | 5 votes |
@Override protected void onPause() { if (!Monetize.isAdsRemoved()) { for (AdView adView : adViewTiers) { if (adView != null) { adView.pause(); } } } super.onPause(); }
Example 3
Source File: MainActivity.java From android-ads with Apache License 2.0 | 5 votes |
@Override protected void onPause() { for (Object item : recyclerViewItems) { if (item instanceof AdView) { AdView adView = (AdView) item; adView.pause(); } } super.onPause(); }
Example 4
Source File: AdMobPlugin.java From cordova-admob-pro with MIT License | 5 votes |
@Override protected void __pauseAdView(View view) { if(view == null) return; if(view instanceof PublisherAdView) { PublisherAdView dfpView = (PublisherAdView)view; dfpView.pause(); } else { AdView admobView = (AdView)view; admobView.pause(); } }
Example 5
Source File: MainActivity.java From googleads-mobile-android-examples with Apache License 2.0 | 5 votes |
@Override protected void onPause() { for (Object item : recyclerViewItems) { if (item instanceof AdView) { AdView adView = (AdView) item; adView.pause(); } } super.onPause(); }
Example 6
Source File: AdmobFetcherBanner.java From admobadapter with Apache License 2.0 | 4 votes |
public synchronized void pauseAll(){ for(AdView ad:mPrefetchedAds){ ad.pause(); } }