Package com.my.target.ads
Class RewardedAd
-
- All Implemented Interfaces:
public final class RewardedAd extends BaseInterstitialAd
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceRewardedAd.RewardedAdListener
-
Constructor Summary
Constructors Constructor Description RewardedAd(int slotId, Context context)Public constructor
-
Method Summary
Modifier and Type Method Description voiddestroy()Close, destroy the ad and free resources RewardedAd.RewardedAdListenergetListener()Get events listener of an advertisement voidsetListener(@Nullable() RewardedAd.RewardedAdListener listener)Set events listener of an advertisement Must be called before RewardedAd.load() -
Methods inherited from class com.my.target.ads.BaseInterstitialAd
dismiss, getAdSource, getAdSourcePriority, getCloseDelay, getVideoQuality, isMediationEnabled, isUseExoPlayer, load, loadFromBid, setMediationEnabled, setStatListener, setVideoQuality, show, show, useExoPlayer -
Methods inherited from class com.my.target.common.BaseAd
getCustomParams, getTag, getWebFormClient, setAdNetworkConfig, setTag, setWebFormClient -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
destroy
void destroy()
Close, destroy the ad and free resources
-
getListener
@Nullable() RewardedAd.RewardedAdListener getListener()
Get events listener of an advertisement
- Returns:
an instance of listener
-
setListener
void setListener(@Nullable() RewardedAd.RewardedAdListener listener)
Set events listener of an advertisement Must be called before RewardedAd.load()
-
-
-
-