ManagedRewardedAdQueue class

The fully managed queue of RewardedAds

Constructors

ManagedRewardedAdQueue(RewardedAdInitializer _rewardedAdInitializer)

Properties

adsInQueue int
The number of ads currently preloaded and ready in the queue
getter/setter pair
adUnitId String
The Ad Unit Id of the ad managed by this instance
latefinal
hashCode int
The hash code for this object.
no setterinherited
maxAdsInQueue int
The maximum number of ads that the queue will ever have at one time, determined by RewardedAdInitializer.count
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Disposes all resources used by the ManagedRewardedAdQueue instance. Note that along with disposing all of the ads managed by the instance, the instance will also no longer be retrievable from MobileAdsManager.instance.getManagedRewardedAdQueue, or MobileAdsManager.instance.getAllManagedRewardedAdQueues
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
showRewardedAd({double showChance = 1.0, required void onUserEarnedReward(AdWithoutView ad, RewardItem reward)}) → void
Shows a rewarded ad, based on the showChance, automatically reloading the queue after the ad is shown, or doing nothing at all if the ad is not shown (due to showChance)
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited