|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AudioTrack
Get track metadata, as read from ID3 or similar tags, of the currently playing audio track. String methods will not return null, but will return empty string if a tag isn't present.
| Method Summary | |
|---|---|
boolean |
canBePlayed()
Returns false if we have detected for some reason that the audio engine cannot play this file. |
String |
getAlbum()
Return Album name of song. |
Bitmap |
getAlbumArt()
Return a Bitmap containing the album art. |
String |
getArtist()
Return Artist of song. |
String |
getComment()
Return comment. |
String |
getComposer()
Return composer. |
String |
getGenre()
Return genre. |
String |
getGrouping()
Return grouping. |
int |
getMillisecondLength()
Return track length in milliseconds as stored in tags. |
String |
getSubtitle()
Return SubTitle of song. |
String |
getTitle()
Return Title of song. |
int |
getTrackCount()
Return number of tracks. -1 if not available |
int |
getTrackNumber()
Return track number. -1 if not available |
String |
getYear()
Return year. |
boolean |
hasAlbumArt()
Returns true if album art was detected on initial file scan. |
boolean |
hasMedia()
Returns false if this track doesn't actually have a file backing it. |
boolean |
isCompilation()
Return true if part of a compilation. |
boolean |
isPlaying()
Returns true if this track is playing right now. |
| Method Detail |
|---|
String getTitle()
String getSubtitle()
String getArtist()
String getAlbum()
String getYear()
String getComment()
String getComposer()
String getGenre()
String getGrouping()
int getTrackNumber()
int getTrackCount()
boolean isCompilation()
int getMillisecondLength()
boolean hasAlbumArt()
Bitmap getAlbumArt()
boolean isPlaying()
boolean hasMedia()
boolean canBePlayed()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||