public final class InterstitialAd
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
InterstitialAd.AdListener
Interstitial Ad Listener
|
Constructor and Description |
---|
InterstitialAd(android.content.Context context)
Use this constructor to create an Interstitial Ad.
|
InterstitialAd(android.content.Context context,
InterstitialCommand command)
Don't use this constructor, reserved for AskingPoint and future use.
|
Modifier and Type | Method and Description |
---|---|
InterstitialAd.AdListener |
getAdListener()
Returns the AdListener currently set on the Interstitial Ad.
|
java.util.Map<java.lang.String,java.lang.String> |
getParameters()
Reserved for AskingPoint use.
|
boolean |
isLoaded()
Returns true if an Interstitial Ad is currently loaded and ready for display, else false.
|
void |
setAdListener(InterstitialAd.AdListener adListener)
Set an AdListener to be notified of the state of Interstitial Ads: loaded, dismissed, failed, etc.
Listeners are not required to be set, but when not the only means of knowing an Ad is loaded and ready for display is by polling isLoaded(). |
void |
setParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
Reserved for AskingPoint use.
|
boolean |
show()
Show the Interstitial Ad.
Prior to calling this method, check that an Ad is loaded via InterstitialAd.isLoaded()
or InterstitialAd.AdListener.onInterstitialLoaded(InterstitialAd) . |
public InterstitialAd(android.content.Context context)
public InterstitialAd(android.content.Context context, InterstitialCommand command)
public boolean isLoaded()
public void setAdListener(InterstitialAd.AdListener adListener)
adListener
- The AdListener to be invoked.InterstitialAd.isLoaded()
public InterstitialAd.AdListener getAdListener()
public void setParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
public java.util.Map<java.lang.String,java.lang.String> getParameters()
public boolean show()
InterstitialAd.isLoaded()
or InterstitialAd.AdListener.onInterstitialLoaded(InterstitialAd)
.InterstitialAd.isLoaded()
,
InterstitialAd.AdListener.onInterstitialLoaded(InterstitialAd)