AdVideoEvent enum

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

play → const AdVideoEvent

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

pause → const AdVideoEvent

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

end → const AdVideoEvent

Called when the video reaches the end

muted → const AdVideoEvent

Called when the video is muted

unmuted → const AdVideoEvent

Called when the video is unmuted

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<AdVideoEvent>
A constant List of the values in this enum, in order of their declaration.