HighfivveInterstitialAd class

A controller for loading and displaying Highfivve interstitial advertisements.

This class manages the loading state and presentation of interstitial ads. It provides methods to load and show ads, and exposes properties to check the current loading and loaded status.

Example usage:

final interstitialAd = HighfivveInterstitialAd();
await interstitialAd.load('interstitial_position', pageType: 'home');
if (interstitialAd.isLoaded) {
  await interstitialAd.show();
}

See also:

Constructors

HighfivveInterstitialAd()
Creates a new HighfivveInterstitialAd controller.

Properties

hashCode int
The hash code for this object.
no setterinherited
isLoaded bool
Whether the interstitial ad is loaded and ready to be shown.
no setter
isLoading bool
Whether the interstitial ad is currently loading.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

load(String position, {String? pageType}) Future<void>
Loads an interstitial ad for the given position.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
show() Future<void>
Shows the loaded interstitial ad.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited