RewardedAdPlatformInterface class
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
destroyRewardedVideoAd(
int id) → Future< bool?> - Removes the rewarded video Ad.
-
loadRewardedVideoAd(
int id, {String placementId = "YOUR_PLACEMENT_ID", String? userId, required dynamic listener(RewardedAdPlatformInterfaceResult, dynamic)}) → Future< bool?> -
Loads a rewarded video Ad in background. Replace the default
placementId
with the one which you obtain by signing-up for Facebook Audience Network. -
showRewardedVideoAd(
int id, {int delay = 0}) → Future< bool?> -
Shows a rewarded video Ad after it has been loaded. (This needs to be
called only after calling loadRewardedVideoAd function).
delay
is in milliseconds.