Package com.my.target.ads
Class InterstitialAd
- java.lang.Object
-
- com.my.target.common.BaseAd
-
- com.my.target.ads.BaseInterstitialAd
-
- com.my.target.ads.InterstitialAd
-
public final class InterstitialAd extends BaseInterstitialAd
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceInterstitialAd.InterstitialAdListener
-
Field Summary
Fields Modifier and Type Field Description protected InterstitialAd.InterstitialAdListenerlistener-
Fields inherited from class com.my.target.common.BaseAd
adConfig, metricFactory
-
-
Constructor Summary
Constructors Constructor Description InterstitialAd(int slotId, android.content.Context context)Public constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()Close, destroy the ad and free resourcesInterstitialAd.InterstitialAdListenergetListener()Get events listener of an advertisementvoidsetListener(InterstitialAd.InterstitialAdListener listener)Set events listener of an advertisement Must be called beforeBaseInterstitialAd.load()-
Methods inherited from class com.my.target.ads.BaseInterstitialAd
dismiss, getAdSource, getAdSourcePriority, handleSection, isMediationEnabled, isUseExoPlayer, load, loadFromBid, setMediationEnabled, show, show, useExoPlayer
-
Methods inherited from class com.my.target.common.BaseAd
getCustomParams, isLoadCalled, setAdNetworkConfig
-
-
-
-
Field Detail
-
listener
@Nullable protected InterstitialAd.InterstitialAdListener listener
-
-
Method Detail
-
getListener
@Nullable public InterstitialAd.InterstitialAdListener getListener()
Get events listener of an advertisement- Returns:
- an instance of listener
- See Also:
InterstitialAd.InterstitialAdListener
-
setListener
public void setListener(@Nullable InterstitialAd.InterstitialAdListener listener)Set events listener of an advertisement Must be called beforeBaseInterstitialAd.load()- See Also:
InterstitialAd.InterstitialAdListener
-
destroy
public void destroy()
Close, destroy the ad and free resources- Overrides:
destroyin classBaseInterstitialAd
-
-