FakeAdsRepository class

Implemented types

Constructors

FakeAdsRepository.new({required Logger logger})

Properties

adEvents PublishSubject<AdEvent>
Stream of ad events. For listening to ad lifecycle events
final
adRevenues PublishSubject<AdRevenue>
Stream of ad revenues, that is being updated after every ad show and interaction
final
hashCode int
The hash code for this object.
no setterinherited
logger Logger
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

hideBanner(String placement) Future<void>
Hide banner
override
init({bool waitForInitialAd = false}) Future<void>
Initialize repository
override
loadAppOpen(String placement) Future<void>
Load app open ad, not available for all SDKs
override
loadBanner(String placement) Future<void>
Loads banner. No need to call if auto load is enabled in current ad sdk
override
loadInterstitial(String placement) Future<void>
Loads interstitial. No need to call if auto load is enabled in current ad sdk
override
loadRewarded(String placement) Future<void>
Load rewarded ad
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
showAppOpen(String placement) Future<bool>
Show appOpen. If auto load is enabled, no need to call loadAppOpen
override
showBanner(String placement) Future<bool>
Show banner. If auto load is enabled, no need to call loadInterstitial
override
showInterstitial(String placement) Future<bool>
Show interstitial. If auto load is enabled, no need to call loadInterstitial
override
showRewarded(String placement) Future<bool>
Show rewarded. If auto load is enabled, no need to call loadRewarded
override
toString() String
A string representation of this object.
inherited

Operators

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