UnityRewardedAds class
Unity Mediation Rewarded Ads plugin for Flutter applications.
- Inheritance
-
- Object
- UnityAdsBase
- UnityRewardedAds
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
-
load(
{required String placementId, dynamic onComplete(String placementId)?, dynamic onFailed(String placementId, UnityMediationAdsLoadError error, String errorMessage)?}) → Future< void> - Load a placement to make it available to show. Ads generally take a few seconds to finish loading before they can be shown.
-
show(
{required String placementId, dynamic onRewardedShowed(String placementId)?, dynamic onRewardedClicked(String placementId)?, dynamic onRewardedClosed(String placementId)?, dynamic onRewardedFailedShow(String placementId, UnityMediationAdsShowError error, String errorMessage)?, dynamic onUserRewarded(String placementId)?}) → Future< void> - Show an ad using the provided placement ID.