UnityInterstitialAds class

Unity Mediation Interstitial Ads plugin for Flutter applications.

Inheritance

Constructors

UnityInterstitialAds()

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 onInterstitialShowed(String placementId)?, dynamic onInterstitialClicked(String placementId)?, dynamic onInterstitialClosed(String placementId)?, dynamic onInterstitialFailedShow(String placementId, UnityMediationAdsShowError error, String errorMessage)?}) Future<void>
Show an ad using the provided placement ID.