HighfivveAdManager class

A singleton manager for handling Highfivve advertising SDK operations.

Use HighfivveAdManager.instance to access the shared instance. Provides methods to initialize the SDK, load and show ads, and listen to ad events.

Example usage:

await HighfivveAdManager.instance.initialize(
  bundleName: 'com.example.app',
  publisherCode: 'your-publisher-code',
);
HighfivveAdManager.instance.loadBannerAd();
HighfivveAdManager.instance.adEvent.listen((event) {
  // Handle ad events
});

Properties

adEvent Stream<AdEvent>
Stream of AdEvents emitted by the SDK.
no setter
adEventListener → _AdEventListener
no setter
adEventSubject → BehaviorSubject<AdEvent>
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getAvailableAdSlots() Future<List<AdSlot>>
Returns a list of available ad slots configured in the SDK.
initialize({required String bundleName, required String publisherCode}) Future<void>
Initializes the Highfivve advertising SDK.
loadInterstitialAd(String position, {String? pageType}) Future<void>
Loads an interstitial ad for a given position.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
showInterstitialAd() Future<void>
Shows a loaded interstitial ad.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance HighfivveAdManager
Returns the shared singleton instance.
no setter