EasyAds class

Properties

adIdManager IAdIdManager
latefinal
hashCode int
The hash code for this object.
no setterinherited
onEvent Stream<AdEvent>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showAdBadge bool
On banner, ad badge will appear
no setter

Methods

createBanner({required AdNetwork adNetwork, AdSize adSize = AdSize.banner}) EasyAdBase?
Returns EasyAdBase if ad is created successfully. It assumes that you have already assigned banner id in Ad Id Manager
destroyAds({AdNetwork adNetwork = AdNetwork.any, AdUnitType? adUnitType}) → void
Do not call this method until unless you want to remove ads entirely from the app. Best user case for this method could be removeAds In app purchase.
initialize(IAdIdManager manager, {bool unityTestMode = false, bool fbTestMode = false, bool isShowAppOpenOnAppStateChange = false, AdRequest? adMobAdRequest, RequestConfiguration? admobConfiguration, bool enableLogger = true, String? fbTestingId, bool isAgeRestrictedUserForApplovin = false, bool fbiOSAdvertiserTrackingEnabled = false, bool showAdBadge = false, Map<int, List<int>>? segments}) Future<void>
Initializes the Google Mobile Ads SDK.
isAppOpenAdLoaded({AdNetwork adNetwork = AdNetwork.any}) bool
Returns bool indicating whether ad has been loaded
isInterstitialAdLoaded({AdNetwork adNetwork = AdNetwork.any}) bool
Returns bool indicating whether ad has been loaded
isRewardedAdLoaded({AdNetwork adNetwork = AdNetwork.any}) bool
Returns bool indicating whether ad has been loaded
loadAd({AdNetwork adNetwork = AdNetwork.any, AdUnitType? adUnitType}) → void
This will load both rewarded and interstitial ads. If a particular ad is already loaded, it will not load it again. Also you do not have to call this method everytime. Ad is automatically loaded after being displayed.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
showAd(AdUnitType adUnitType, {AdNetwork adNetwork = AdNetwork.any, int loaderDuration = 0, BuildContext? context}) bool
Displays adUnitType ad from adNetwork. It will check if first ad it found from list is loaded, it will be displayed if adNetwork is not mentioned otherwise it will load the ad.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance EasyAds
final