Events class Null safety

Handlers for events fired by the player.

Annotations

Constructors

Events({PlayerEventHandler<PlayerEvent> onReady, PlayerEventHandler<OnStateChangeEvent> onStateChange, PlayerEventHandler<OnPlaybackQualityChangeEvent> onPlaybackQualityChange, PlayerEventHandler<OnPlaybackRateChangeEvent> onPlaybackRateChange, PlayerEventHandler<OnErrorEvent> onError, PlayerEventHandler<PlayerEvent> onApiChange})
factory

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
onApiChange PlayerEventHandler<PlayerEvent>
Event fired to indicate thath the player has loaded, or unloaded, a module with exposed API methods. This currently only occurs for closed captioning.
read / write
onError PlayerEventHandler<OnErrorEvent>
Event fired when an error in the player occurs
read / write
onPlaybackQualityChange PlayerEventHandler<OnPlaybackQualityChangeEvent>
Event fired when the playback quality of the player changes.
read / write
onPlaybackRateChange PlayerEventHandler<OnPlaybackRateChangeEvent>
Event fired when the playback rate of the player changes.
read / write
onReady PlayerEventHandler<PlayerEvent>
Event fired when a player has finished loading and is ready to begin receiving API calls.
read / write
onStateChange PlayerEventHandler<OnStateChangeEvent>
Event fired when the player's state changes.
read / write
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