FastAdmobInterstitialAdService class
Controller for Interstitial ads.
Constructors
- FastAdmobInterstitialAdService.new({FastAdInfo? adInfo})
Properties
- adInfo → FastAdInfo?
-
Information about the ad.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAdAvailable → bool
-
Whether an ad is available to be shown.
no setter
-
onAdImpression
→ Stream<
DateTime> -
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void -
loadAd(
{List< String> ? whiteList, Duration? timeout, String? country}) → Future<bool> -
Loads an InterstitialAd.
Returns
true
if the ad was loaded successfully,false
otherwise.whiteList
: A list of allowed countries for ad requests.timeout
: The duration after which the ad request will time out.country
: The user's country for ad targeting. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
showAdIfAvailable(
) → void - Shows the ad if it is available.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited