|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdanger.player.MusicPlayer
public class MusicPlayer
Public information about the state of the music player.
| Method Summary | |
|---|---|
static AudioTrack |
getCurrentTrack()
Gets the track the media player is currently playing, or played most recently. |
static String |
getPlayerName()
Return the human-readable name of the music player application. |
static int |
getVolume()
Get the volume of the currently playing music. |
static boolean |
isInstalled()
Is the music player installed. |
static boolean |
isMiniPlayerVisible()
|
static boolean |
isPaused()
Whether or not the media player is currently paused. |
static boolean |
isPlaying()
Whether or not the media player is currently playing a track. |
static boolean |
isStopped()
Whether or not the media player is currently stopped. |
static boolean |
isVisible()
Is the music player visible to the user. |
static void |
moveToNextTrack()
Start playing the next track in the play queue. |
static void |
moveToPreviousTrack()
Start playing the previous track in the play queue. |
static void |
pause()
Pause the mediaplayer. |
static void |
play()
Start playing the mediaplayer. |
static void |
registerMediaPlayerStateListener(Listener listener)
Registers a listener for media player events, sending out the current state via events. |
static void |
restartOrMoveToPreviousTrack()
Start playing previous track or restart the current track based on logic in the mediaplayer. |
static void |
restartTrack()
Start playing the current track from the beginning. |
static void |
stop()
Stop the mediaplayer. |
static void |
togglePlayPause()
If the mediaplayer is playing, then this will pause it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void registerMediaPlayerStateListener(Listener listener)
public static boolean isMiniPlayerVisible()
public static boolean isInstalled()
public static boolean isVisible()
public static String getPlayerName()
public static boolean isPlaying()
public static boolean isPaused()
public static boolean isStopped()
public static int getVolume()
public static AudioTrack getCurrentTrack()
public static void play()
public static void pause()
public static void stop()
public static void togglePlayPause()
public static void moveToNextTrack()
public static void moveToPreviousTrack()
public static void restartTrack()
public static void restartOrMoveToPreviousTrack()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||