InterstitialAd class

A full-screen interstitial ad for the FirebaseAdMobPlugin.

Inheritance

Constructors

InterstitialAd({String adUnitId, MobileAdTargetingInfo targetingInfo, MobileAdListener listener})
Create an Interstitial.

Properties

adUnitId String
Identifies the source of ads for your application.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
id int
An internal id that identifies this mobile ad to the native AdMob plugin.
no setterinherited
listener MobileAdListener
Called when the status of the ad changes.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
targetingInfo MobileAdTargetingInfo
Optional targeting info per the native AdMob API.
no setterinherited

Methods

dispose() Future<bool>
Free the plugin resources associated with this ad.
inherited
isLoaded() Future<bool>
inherited
load() Future<bool>
Start loading this ad.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
show({double anchorOffset = 0.0, double horizontalCenterOffset = 0.0, AnchorType anchorType = AnchorType.bottom}) Future<bool>
Show this ad.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

testAdUnitId String
A platform-specific AdMob test ad unit ID. This ad unit has been specially configured to always return test ads, and developers are encouraged to use it while building and testing their apps.
final