Version: 2.67.0

EventDispatcher

THEOplayer > EventDispatcher

EventDispatcher interface

Inherits from EventMap<StringKeyOf<TEventMap>>> . See parent page for inherited properties and methods.

Dispatches events that are fired.

Signature:
export interface EventDispatcher<TEventMap extends EventMap<StringKeyOf<TEventMap>>>

Methods

Method

Description

addEventListener(type, listener)

Add the given listener for the given event type(s).

removeEventListener(type, listener)

Remove the given listener for the given event type(s).