AdropBannerController class

Banner controller class responsible for requesting banner ads.

Constructors

AdropBannerController.withId(int id, {required AdropBanner banner, void onAdReceived(AdropBanner banner)?, void onAdClicked(AdropBanner banner)?, void onAdFailedToReceive(AdropBanner banner, AdropErrorCode errorCode)?})
Banner controller class responsible for requesting banner ads.

Properties

hashCode int
The hash code for this object.
no setterinherited
onAdClicked → void Function(AdropBanner banner)?
final
onAdFailedToReceive → void Function(AdropBanner banner, AdropErrorCode errorCode)?
final
onAdReceived → void Function(AdropBanner banner)?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

load() Future<void>
Requests an ad from Adrop using the Ad unit ID of the AdropBanner.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() Future<void>
Pauses playback of the video banner ad.
play() Future<void>
Starts or resumes playback of the video banner ad.
toString() String
A string representation of this object.
inherited

Operators

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