NativeAdEvent enum

The events a NativeAdController can receive. Listen to the events using controller.onEvent.listen((event) {}).

Avaiable events:

  • loading (When the ad starts loading)
  • loaded (When the ad is loaded)
  • loadFailed (When the ad failed to load)
  • muted (When the ad is dismissed)
  • undefined (When it receives an unknown error)

For more info, read the documentation

Inheritance

Constructors

NativeAdEvent()
const

Values

loadFailed → const NativeAdEvent

Called when an ad request failed.

You can see the error codes here

For more info, read the documentation

loaded → const NativeAdEvent

Called when an ad is received.

For more info, read the documentation

loading → const NativeAdEvent

Called when the ad starts loading

For more info, read the documentation

muted → const NativeAdEvent

Called when the ad is muted, in other words, when the user closes the ad

Default mute this ad

If you don't want to use the default mute this ad, read the documentation on how to create a custom mute this ad

undefined → const NativeAdEvent

Called when the event is unkown (usually for rebuilding ui)

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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<NativeAdEvent>
A constant List of the values in this enum, in order of their declaration.