Skip to main content

RewardedAd

class RewardedAd

Class responsible for the display and control of Admod ads.


public class RewardedAd

— Constructors (1) —

ConstructorDescription
RewardedAd(String id)Creates a new instance of RewardedAd with its "id" defined to be the argument.

— Methods (12) —

NameDescription
String getError()Returns an error.
String getId()Returns the current RewardedAd id.
int getRewardAmount()Returns the current number of ads of type RewardedAd that are displayed.
String getRewardType()Returns the current RewardedAd reward type.
boolean isDisplayError()Returns true if an error is being displayed, returns false if not.
boolean isDisplayed()Returns true if an ad is being displayed, returns false if not.
boolean isLoaded()Returns true if the ad loaded, returns false if not.
boolean isLoading()Returns true if the ad is loading, returns false if not.
boolean isLoadingError()Returns true if an error is loading, returns false if not.
boolean isOnUserEarned()Returns true if the user watched the ad to the end and received the reward.
void load()Loads an ad.
void show()Displays an ad.