BannerAdEvent enum Null safety
The events a BannerAdController can receive. Listen
to the events using controller.onEvent.listen((event) {})
.
Avaiable events:
- impression (When the ad is rendered on the screen)
- loading (When the ad starts loading)
- loaded (When the ad is loaded)
- loadFailed (When the ad failed to load)
Constructors
- BannerAdEvent()
-
const
Values
- impression → const BannerAdEvent
-
Called when an impression is recorded for an ad.
const BannerAdEvent(0)
- loadFailed → const BannerAdEvent
-
Called when an ad request failed.
const BannerAdEvent(1)
- loaded → const BannerAdEvent
-
Called when an ad is received.
const BannerAdEvent(2)
- loading → const BannerAdEvent
-
Called when the ad starts loading
const BannerAdEvent(3)
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
BannerAdEvent> -
A constant List of the values in this enum, in order of their declaration.
[impression, loadFailed, loaded, loading]