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
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Close, destroy the ad and free resourcesGet events listener of an advertisementvoidsetListener(RewardedAd.RewardedAdListener listener) Set events listener of an advertisement Must be called beforeRewardedAd#load()Methods inherited from class com.my.target.ads.BaseInterstitialAd
dismiss, getAdSource, getAdSourcePriority, isMediationEnabled, isUseExoPlayer, load, loadFromBid, setMediationEnabled, show, show, useExoPlayerMethods inherited from class com.my.target.common.BaseAd
getCustomParams, isLoadCalled, setAdNetworkConfig
-
Field Details
-
listener
-
-
Constructor Details
-
RewardedAd
public RewardedAd(int slotId, android.content.Context context) Public constructor- Parameters:
slotId- your slot idcontext- app context
-
-
Method Details
-
getListener
Get events listener of an advertisement- Returns:
- an instance of listener
- See Also:
-
setListener
Set events listener of an advertisement Must be called beforeRewardedAd#load()- See Also:
-
destroy
public void destroy()Close, destroy the ad and free resources- Overrides:
destroyin classBaseInterstitialAd
-