CASRewarded class abstract
Manages a rewarded ad, allowing for loading, showing, and destroying the ad content.
This class provides functionality to handle rewarded ads, which are ads where users can earn rewards for interacting with them.
casId
The unique identifier for the CAS content, typically an application bundle name.
Constructors
Properties
- contentCallback ↔ ScreenAdContentCallback?
-
Gets or sets the callback for handling ad content events.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- impressionListener ↔ OnAdImpressionListener?
-
Gets or sets the listener for ad impression events.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
destroy(
) → Future< void> -
dispose(
) → Future< void> - Disposes the ad content and releases any associated resources.
-
getContentInfo(
) → Future< AdContentInfo?> - Information about the currently loaded ad.
-
isAutoloadEnabled(
) → Future< bool> - Gets or sets whether autoloading of ads is enabled.
-
isExtraFillInterstitialAdEnabled(
) → Future< bool> - Controls whether interstitial ads are shown as a fallback when a rewarded video ad has no available fill.
-
isLoaded(
) → Future< bool> - Indicates whether the ad is currently loaded and ready to be shown.
-
load(
) → Future< void> - Loads the rewarded ad content.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setAutoloadEnabled(
bool isEnabled) → Future< void> -
See
getAutoloadEnabled
-
setExtraFillInterstitialAdEnabled(
bool isEnabled) → Future< void> - See isExtraFillInterstitialAdEnabled
-
show(
OnRewardEarnedListener listener) → Future< void> - Shows the rewarded ad to the user.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
create(
String casId) → CASRewarded