AdVideoEvent enum Null safety

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

Avaiable events:

  • start (When the video starts)
  • play (When the video is played)
  • pause (When the video is paused)
  • end (When the avideo reaches the end)
  • muted (When the video is muted)
  • unmuted (When the video is unmuted)

For more info, read the documentation

Inheritance

Constructors

AdVideoEvent()
const

Values

start → const AdVideoEvent

Called when the video starts. This is called only once

const AdVideoEvent(0)
play → const AdVideoEvent

Called when the video is played. This can be called multiple times while the video is running

const AdVideoEvent(1)
pause → const AdVideoEvent

Called when the video is somehow paused, either for user interaction or programatically

const AdVideoEvent(2)
end → const AdVideoEvent

Called when the video reaches the end

const AdVideoEvent(3)
muted → const AdVideoEvent

Called when the video is muted

const AdVideoEvent(4)
unmuted → const AdVideoEvent

Called when the video is unmuted

const AdVideoEvent(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<AdVideoEvent>
A constant List of the values in this enum, in order of their declaration.
[start, play, pause, end, muted, unmuted]