Java Code Examples for com.google.android.gms.ads.InterstitialAd#isLoaded()

The following examples show how to use com.google.android.gms.ads.InterstitialAd#isLoaded() . 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: PlayActivity.java    From FixMath with Apache License 2.0 5 votes vote down vote up
boolean showIntersitialAdOnNextLevel(InterstitialAd intersitialAdOnNextLevel, int actualLevel) {
    if (actualLevel % 2 == 0) {
        if (intersitialAdOnNextLevel.isLoaded()) {
            intersitialAdOnNextLevel.show();
            return true;
        } else {
            return false;
        }
    }else{
        return false;
    }


}
 
Example 2
Source File: PlayActivity.java    From FixMath with Apache License 2.0 5 votes vote down vote up
boolean showIntersitialAdOnClose(InterstitialAd intersitialAdOnClose, int actualLevel){
    if(actualLevel % 2 == 0) {
        if (intersitialAdOnClose.isLoaded()) {
            intersitialAdOnClose.show();
            return true;
        } else {
            return false;
        }
    }else{
        return false;
    }
}
 
Example 3
Source File: TimeAttackActivity.java    From FixMath with Apache License 2.0 5 votes vote down vote up
boolean showIntersitialAdOnClose(InterstitialAd intersitialAdOnClose, boolean isShowInterstialOnClose){
        if(isShowInterstialOnClose) {
            if (intersitialAdOnClose.isLoaded()) {
                intersitialAdOnClose.show();
                return true;
            } else {
                return false;
            }
        }else {
            return false;
        }
}
 
Example 4
Source File: TimeAttackActivity.java    From FixMath with Apache License 2.0 5 votes vote down vote up
boolean showIntersitialAdOnNextLevel(InterstitialAd intersitialAdOnClose){
    if (intersitialAdOnClose.isLoaded()) {
        intersitialAdOnClose.show();
        return true;
    } else {
        return false;
    }
}
 
Example 5
Source File: MainActivity.java    From BusyBox with Apache License 2.0 4 votes vote down vote up
private boolean interstitialIsReady(InterstitialAd interstitialAd) {
    return interstitialAd != null && interstitialAd.isLoaded();
}
 
Example 6
Source File: MainActivity.java    From BusyBox with Apache License 2.0 4 votes vote down vote up
private boolean interstitialIsReady(InterstitialAd interstitialAd) {
    return interstitialAd != null && interstitialAd.isLoaded();
}