AdmobService class

Service handles admob initialization & generates ad unit

Constructors

AdmobService(AdmobConfig _admobConfig)
const

Properties

appVolume double
no setter
bannerAdUnitId String
no setter
bannerSize AdSize
no setter
hashCode int
The hash code for this object.
no setterinherited
interstitialAdUnitId String
no setter
loggingBuilder → (dynamic Function(String)?)
no setter
maxRetryReloadAds int
no setter
nativeAdFactoryId String
no setter
nativeAdUnitId String
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
testDeviceIds List<String>
no setter
thresholdShowInterstitialAds int
no setter

Methods

createBannerAd({dynamic onLoaded()?, dynamic onLoadFailed()?}) BannerAd
Generate BannerAd with callback functions, then use it to create AdWidget widget.
createNativeAd({dynamic onLoaded()?, dynamic onLoadFailed()?}) NativeAd
Generate NativeAd with callback functions, then use this controller to create NativeAd widget.
init() Future<void>
Initialize MobileAds, must be called before runApp.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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