|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.evolution.player.ui.musicplayer.IMusicPlayerController.MusicPlayerControllerListener
public abstract static class IMusicPlayerController.MusicPlayerControllerListener
A music player controller listener is informed about state changes in the music player.
IMusicPlayerController.addPlayListener(MusicPlayerControllerListener)
Constructor Summary | |
---|---|
IMusicPlayerController.MusicPlayerControllerListener()
|
Method Summary | |
---|---|
abstract void |
playing(LocalMediaInfo media)
The music player has started playing the given media. |
abstract void |
progress(long currentTimeMs,
long totalTimeMs)
currentTimeMs has been played from totalTimeMs of the current song. |
abstract void |
setPaused(boolean paused)
The player was paused or resumed. |
abstract void |
started()
The music player has been started. |
abstract void |
stopped()
The music player has been stopped. |
void |
volumeChanged(int volume)
The volume of the player has been changed to the given value. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IMusicPlayerController.MusicPlayerControllerListener()
Method Detail |
---|
public abstract void started()
public abstract void stopped()
public abstract void playing(LocalMediaInfo media)
media
- the played mediapublic abstract void progress(long currentTimeMs, long totalTimeMs)
currentTimeMs
- the current amount of played time in millisecondstotalTimeMs
- the total length of the current song in millisecondspublic abstract void setPaused(boolean paused)
paused
- true if the player was paused, false if the player was
resumed.public void volumeChanged(int volume)
volume
- the new volume in the range [0, 100]
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |