Package com.my.target.ads
Class RewardedAd
- java.lang.Object
-
- com.my.target.common.BaseAd
-
- com.my.target.ads.BaseInterstitialAd
-
- com.my.target.ads.RewardedAd
-
public final class RewardedAd extends BaseInterstitialAd
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRewardedAd.RewardedAdListener
-
Field Summary
Fields Modifier and Type Field Description protected RewardedAd.RewardedAdListenerlistener-
Fields inherited from class com.my.target.common.BaseAd
adConfig, metricFactory
-
-
Constructor Summary
Constructors Constructor Description RewardedAd(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 resourcesRewardedAd.RewardedAdListenergetListener()Get events listener of an advertisementvoidsetListener(RewardedAd.RewardedAdListener 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 RewardedAd.RewardedAdListener listener
-
-
Method Detail
-
getListener
@Nullable public RewardedAd.RewardedAdListener getListener()
Get events listener of an advertisement- Returns:
- an instance of listener
- See Also:
RewardedAd.RewardedAdListener
-
setListener
public void setListener(@Nullable RewardedAd.RewardedAdListener listener)Set events listener of an advertisement Must be called beforeBaseInterstitialAd.load()- See Also:
RewardedAd.RewardedAdListener
-
destroy
public void destroy()
Close, destroy the ad and free resources- Overrides:
destroyin classBaseInterstitialAd
-
-