BannerAd class

A banner ad.

This ad can either be overlaid on top of all flutter widgets as a static view or displayed as a typical Flutter widget. To display as a widget, instantiate an AdWidget with this as a parameter.

Inheritance

Constructors

BannerAd({required AdSize size, required String placementId, required String unitId, required BannerAdListener listener})
Creates a BannerAd.

Properties

hashCode int
The hash code for this object.
no setterinherited
listener BannerAdListener
A listener for receiving events in the ad lifecycle.
final
mBridgeIds MBridgeIds?
getter/setter pairinherited
placementId String
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size AdSize
Represents the size of a banner ad.
final
unitId String
finalinherited

Methods

dispose() Future<void>
Frees the plugin resources associated with this ad.
inherited
getPlatformAdSize() Future<AdSize?>
Returns the AdSize of the associated platform ad object.
load() Future<void>
Starts loading this ad.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onPause() Future<void>
inherited
onResume() Future<void>
inherited
toString() String
A string representation of this object.
inherited

Operators

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