FullScreenAdEvent enum Null safety

The events a full screen ad can receive. Listen to the events using fullScreenAd.onEvent.listen((event) {}).

Avaiable events:

  • loading (When the ad starts loading)
  • loaded (When the ad is loaded)
  • loadFailed (When the ad failed to load)
  • showed (When the ad showed successfully)
  • showFailed (When it failed on showing)
  • closed (When the ad is closed)

Useful links:

Inheritance

Constructors

FullScreenAdEvent()
const

Values

loading → const FullScreenAdEvent

Called when the ad starts loading. This event is usually thrown by ad.load()

const FullScreenAdEvent(0)
loaded → const FullScreenAdEvent

Called when the ad is loaded. This event is usually thrown by ad.load()

const FullScreenAdEvent(1)
loadFailed → const FullScreenAdEvent

Called when the load failed. This event is usually thrown by ad.load()

Attempting to load a new ad from the loadFailed event is strongly discouraged. If you must load an ad from this event, limit ad load retries to avoid continuous failed ad requests in situations such as limited network connectivity.

const FullScreenAdEvent(2)
closed → const FullScreenAdEvent

Called when the ad is closed. The same as await ad.show()

const FullScreenAdEvent(3)
showFailed → const FullScreenAdEvent

Called when it failed on showing. This event is usually thrown by ad.show()

Attempting to show the ad again from the showFailed event is strongly discouraged. If you must show the ad from this event, limit ad show retries to avoid continuous failed attempts in situations such as limited network connectivity.

const FullScreenAdEvent(4)
showed → const FullScreenAdEvent

Called when it showed successfully. This event is usually thrown by ad.show()

const FullScreenAdEvent(5)

Properties

hashCode int
The hash code for this object.
read-only, inherited
index int
A numeric identifier for the enumerated value.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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<FullScreenAdEvent>
A constant List of the values in this enum, in order of their declaration.
[loading, loaded, loadFailed, closed, showFailed, showed]