Interface JukeBoxObserver
public interface JukeBoxObserver
An observer to listen for
JukeBox state changes. Events are emitted in JukeBox.update().-
Method Summary
Modifier and TypeMethodDescriptionvoidThis method is called when theJukeBoxstops playing, either by running out of songs/playlists or by being stopped manually.voidThis method is called when theJukeBoxis set to pause.voidThis method is called when theJukeBoxbegins playback.voidonPlayListEnd(PlayList playList) This method is called when aPlayListfinished playing.voidonPlayListStart(PlayList playList) This method is called when a newPlayListis used to play songs.voidThis method is called when a song finished playing.voidonSongStart(Song song) This method is called when a new song is played.
-
Method Details
-
onSongStart
This method is called when a new song is played.- Parameters:
song- the song
-
onSongEnd
-
onPlayListStart
-
onPlayListEnd
-
onJukeBoxStart
void onJukeBoxStart()This method is called when theJukeBoxbegins playback. -
onJukeBoxPause
void onJukeBoxPause()This method is called when theJukeBoxis set to pause. -
onJukeBoxEnd
void onJukeBoxEnd()This method is called when theJukeBoxstops playing, either by running out of songs/playlists or by being stopped manually.
-