Package org.prebid.mobile.eventhandlers
Class RewardedAdWrapper
java.lang.Object
FullScreenContentCallback
org.prebid.mobile.eventhandlers.RewardedAdWrapper
public class RewardedAdWrapper
extends FullScreenContentCallback
Internal wrapper of rewarded ad from GAM SDK.
To achieve safe integration between various GAM SDK versions we have to wrap all PublisherAdView method execution in try / catch.
This class instance should be created via newInstance method, which will catch any potential exception on RewardedAd / RewardedAdWrapper instance creation
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionRewardItem
boolean
isLoaded()
void
loadAd
(Bid bid) void
void
onAdFailedToShowFullScreenContent
(AdError adError) void
void
onUserEarnedReward
(RewardItem rewardItem) void
show
(android.app.Activity activity)
-
Field Details
-
KEY_METADATA
- See Also:
-
-
Method Details
-
onAdFailedToShowFullScreenContent
public void onAdFailedToShowFullScreenContent(AdError adError) -
onAdShowedFullScreenContent
public void onAdShowedFullScreenContent() -
onAdDismissedFullScreenContent
public void onAdDismissedFullScreenContent() -
onUserEarnedReward
public void onUserEarnedReward(RewardItem rewardItem) -
loadAd
public void loadAd(Bid bid) -
isLoaded
public boolean isLoaded() -
show
public void show(android.app.Activity activity) -
getRewardItem
public RewardItem getRewardItem()
-