Interface TimelineQueueEditor.QueueDataAdapter
-
- Enclosing class:
- TimelineQueueEditor
public static interface TimelineQueueEditor.QueueDataAdapter
Adapter to getMediaDescriptionCompat
of items in the queue and to notify the application about changes in the queue to sync the data structure backing theMediaSessionConnector
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
add(int position, android.support.v4.media.MediaDescriptionCompat description)
Adds aMediaDescriptionCompat
at the givenposition
.void
move(int from, int to)
Moves a queue item from positionfrom
to positionto
.void
remove(int position)
Removes the item at the givenposition
.
-
-
-
Method Detail
-
add
void add(int position, android.support.v4.media.MediaDescriptionCompat description)
Adds aMediaDescriptionCompat
at the givenposition
.- Parameters:
position
- The position at which to add.description
- TheMediaDescriptionCompat
to be added.
-
remove
void remove(int position)
Removes the item at the givenposition
.- Parameters:
position
- The position at which to remove the item.
-
move
void move(int from, int to)
Moves a queue item from positionfrom
to positionto
.- Parameters:
from
- The position from which to remove the item.to
- The target position to which to move the item.
-
-