Callback interface for receiving updates from MediaQueue.
All the methods will be called on the main thread.
|
Callback()
|
| void |
itemsInsertedInRange(int insertIndex, int insertCount)
Called when a contiguous range of queue items have been inserted into the
queue.
|
| void |
itemsReloaded()
Called when the queue has been entirely reloaded.
|
| void |
itemsRemovedAtIndexes(int[] indexes)
Called when one or more queue items have been removed from the queue.
|
| void |
itemsReorderedAtIndexes(List<Integer>
indexes, int insertBeforeIndex)
Called when one or more queue items have been reordered in the queue.
|
| void |
itemsUpdatedAtIndexes(int[] indexes)
Called when one or more queue items have been updated in the queue.
|
| void |
mediaQueueChanged()
Called when one or more changes have been made to the queue.
|
| void |
mediaQueueWillChange()
Called when one or more changes are about to be made to the queue.
|
Called when a contiguous range of queue items have been inserted into the queue.
| insertIndex | the index where the items are inserted |
|---|---|
| insertCount | the number of items inserted |
Called when the queue has been entirely reloaded. Any previously accessed queue items should be considered invalid.
Called when one or more queue items have been removed from the queue.
| indexes | the ordered list of indexes of items that have been removed |
|---|
Called when one or more queue items have been reordered in the queue. For example,
indexes of [2, 1, 5] and insertBeforeIndex of
3 means that the original queue of [1, 2, 3, 4, 5, 6] now
looks like [3, 2, 1, 5, 4 ,6].
| indexes | the list of indexes of items that have been reordered. |
|---|---|
| insertBeforeIndex | the index where the reordered items are inserted |
Called when one or more queue items have been updated in the queue. This includes the case where previously accessed but unavailable items have been retrieved and placed in the cache, and the case where previously cached items have been flushed from the cache.
Called when one or more changes have been made to the queue.
Called when one or more changes are about to be made to the queue.