|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPlaylist
Playlist
Method Summary | |
---|---|
void |
addItem(IPlayItem item)
Add an item to the list. |
void |
addItem(IPlayItem item,
int index)
Add an item to specific index. |
IPlayItem |
getCurrentItem()
Get currently playing item |
int |
getCurrentItemIndex()
Get currently playing item index. |
IPlayItem |
getItem(int index)
Get the item according to the index. |
int |
getItemSize()
Return number of items in list |
boolean |
hasMoreItems()
Check if the playlist has more items after the currently playing one. |
boolean |
isRandom()
Whether items are randomly played. |
boolean |
isRepeat()
Whether repeat playing an item. |
boolean |
isRewind()
Whether rewind the list. |
void |
nextItem()
Go for next item decided by controller logic. |
void |
previousItem()
Go for the previous played item. |
void |
removeAllItems()
Remove all items. |
void |
removeItem(int index)
Remove an item from list. |
void |
setItem(int index)
Set the current item for playing. |
void |
setPlaylistController(IPlaylistController controller)
Set list controller. |
void |
setRandom(boolean random)
Set whether items should be randomly played. |
void |
setRepeat(boolean repeat)
Set whether repeat playing an item. |
void |
setRewind(boolean rewind)
Set whether rewind the list. |
Method Detail |
---|
void addItem(IPlayItem item)
item
- Playlist itemvoid addItem(IPlayItem item, int index)
item
- Playlist itemindex
- Index in listvoid removeItem(int index)
index
- Index in listvoid removeAllItems()
int getItemSize()
int getCurrentItemIndex()
IPlayItem getCurrentItem()
IPlayItem getItem(int index)
index
- Item index
boolean hasMoreItems()
true
if more items are available, false
otherwisevoid previousItem()
void nextItem()
void setItem(int index)
index
- Position in listboolean isRandom()
true
if shuffle is on for this list, false
otherwisevoid setRandom(boolean random)
random
- Shuffle flagboolean isRewind()
true
if playlist is rewind on end, false
otherwisevoid setRewind(boolean rewind)
rewind
- New vallue for rewind flagboolean isRepeat()
true
if repeat mode is on for this playlist, false
otherwisevoid setRepeat(boolean repeat)
repeat
- New value for item playback repeat flagvoid setPlaylistController(IPlaylistController controller)
controller
- Playlist controller
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |