public final class RewardedAd extends BaseInterstitialAd
| Modifier and Type | Class and Description |
|---|---|
static interface |
RewardedAd.RewardedAdListener |
| Modifier and Type | Field and Description |
|---|---|
protected RewardedAd.RewardedAdListener |
listener |
adConfig, metricFactory| Constructor and Description |
|---|
RewardedAd(int slotId,
android.content.Context context)
Public constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Close, destroy the ad and free resources
|
RewardedAd.RewardedAdListener |
getListener()
Get events listener of an advertisement
|
void |
setListener(RewardedAd.RewardedAdListener listener)
Set events listener of an advertisement
Must be called before
BaseInterstitialAd.load() |
dismiss, getAdSource, getAdSourcePriority, handleSection, isMediationEnabled, isUseExoPlayer, load, loadFromBid, setMediationEnabled, show, show, useExoPlayergetCustomParams, isLoadCalled@Nullable protected RewardedAd.RewardedAdListener listener
public RewardedAd(int slotId,
@NonNull
android.content.Context context)
slotId - your slot idcontext - app context@Nullable public RewardedAd.RewardedAdListener getListener()
RewardedAd.RewardedAdListenerpublic void setListener(@Nullable
RewardedAd.RewardedAdListener listener)
BaseInterstitialAd.load()RewardedAd.RewardedAdListenerpublic void destroy()
destroy in class BaseInterstitialAd