-
- All Implemented Interfaces:
@MainThread() public final class InterstitialAdLoader
Full-screen interstitial ads.
-
-
Constructor Summary
Constructors Constructor Description InterstitialAdLoader(Context context)Constructs a new InterstitialAdLoader programmatically.
-
Method Summary
Modifier and Type Method Description voidsetAdLoadListener(@Nullable() InterstitialAdLoadListener loadListener)Sets an InterstitialAdLoadListener. voidloadAd(@NonNull() AdRequestConfiguration adRequestConfiguration)Starts loading the ad by AdRequestConfiguration on a background thread. voidcancelLoading()Cancel active loading of the interstitial ads. -
-
Constructor Detail
-
InterstitialAdLoader
InterstitialAdLoader(Context context)
Constructs a new InterstitialAdLoader programmatically.- Parameters:
context- The context through which can be accessible the current theme, resources, etc.
-
-
Method Detail
-
setAdLoadListener
void setAdLoadListener(@Nullable() InterstitialAdLoadListener loadListener)
Sets an InterstitialAdLoadListener.
- Parameters:
loadListener- InterstitialAdLoadListener.
-
loadAd
void loadAd(@NonNull() AdRequestConfiguration adRequestConfiguration)
Starts loading the ad by AdRequestConfiguration on a background thread.
- Parameters:
adRequestConfiguration- AdRequestConfiguration
-
cancelLoading
void cancelLoading()
Cancel active loading of the interstitial ads.
-
-
-
-