prepareToPlay

fun prepareToPlay(audioFile: AudioFile, listener: MusicQueuedListener? = null)

Register a MusicQueuedListener to be notified when the given is queued up for immediate playback upon calling play.

Parameters

listener

MusicQueuedListener this listener will be automatically removed after first callback.

fun prepareToPlay(station: Station?, listener: MusicQueuedListener?)

Register a MusicQueuedListener to be notified when a song is queued up for immediate playback upon calling play.

Parameters

listener

MusicQueuedListener this listener will be automatically removed after first callback.