Developer Documentation
Our new developer documentation is now available. Please check it out!

OdinMedia.addEventListener

addEventListener(eventName: Event, handler: IOdinMediaEvents[Event]): void

Registers to media events from IOdinMediaEvents.

Parameters

NameTypeDescription
eventNameEventThe name of the event to listen to
handlerIOdinMediaEvents[Event]The callback to handle the event

Returns

TypeDescription
void