Java Code Examples for com.google.android.gms.ads.AdView#resume()

The following examples show how to use com.google.android.gms.ads.AdView#resume() . 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 vote down vote up
@Override
protected void onResume() {
    super.onResume();
    if (!Monetize.isAdsRemoved()) {
        for (AdView adView : adViewTiers) {
            if (adView != null) {
                adView.resume();
            }
        }
    }
}
 
Example 2
Source File: MainActivity.java    From BusyBox with Apache License 2.0 5 votes vote down vote up
@Override
protected void onResume() {
    super.onResume();
    if (!Monetize.isAdsRemoved()) {
        for (AdView adView : adViewTiers) {
            if (adView != null) {
                adView.resume();
            }
        }
    }
}
 
Example 3
Source File: MainActivity.java    From android-ads with Apache License 2.0 5 votes vote down vote up
@Override
protected void onResume() {
    for (Object item : recyclerViewItems) {
        if (item instanceof AdView) {
            AdView adView = (AdView) item;
            adView.resume();
        }
    }
    super.onResume();
}
 
Example 4
Source File: AdMobPlugin.java    From cordova-admob-pro with MIT License 5 votes vote down vote up
@Override
protected void __resumeAdView(View view) {
  if(view == null) return;

  if(view instanceof PublisherAdView) {
    PublisherAdView dfpView = (PublisherAdView)view;
    dfpView.resume();
  } else {
    AdView admobView = (AdView)view;
    admobView.resume();
  }
}
 
Example 5
Source File: MainActivity.java    From googleads-mobile-android-examples with Apache License 2.0 5 votes vote down vote up
@Override
protected void onResume() {
    for (Object item : recyclerViewItems) {
        if (item instanceof AdView) {
            AdView adView = (AdView) item;
            adView.resume();
        }
    }
    super.onResume();
}
 
Example 6
Source File: AdmobFetcherBanner.java    From admobadapter with Apache License 2.0 4 votes vote down vote up
public synchronized void resumeAll(){
    for(AdView ad:mPrefetchedAds){
        ad.resume();
    }
}