Instance Method

addEventListener

Add an event listener for a MusicKit instance by name.

Declaration

void addEventListener(name, callback);

Parameters

name

The name of the event.

callback

The callback function to invoke when the event occurs.