MediaQueue: add getItemAtIndex and getItemCount
This commit is contained in:
parent
33fa5977ae
commit
e21c695b42
1 changed files with 8 additions and 0 deletions
|
|
@ -13,6 +13,14 @@ class MediaQueue {
|
||||||
|
|
||||||
MediaQueue(this._hostApi);
|
MediaQueue(this._hostApi);
|
||||||
|
|
||||||
|
Future<int> getItemCount() {
|
||||||
|
return _hostApi.getQueueItemCount();
|
||||||
|
}
|
||||||
|
|
||||||
|
Future<MediaQueueItem> getItemAtIndex(int index) {
|
||||||
|
return _hostApi.getQueueItemAtIndex(index);
|
||||||
|
}
|
||||||
|
|
||||||
/// Called when a contiguous range of queue items have been inserted into the queue.
|
/// Called when a contiguous range of queue items have been inserted into the queue.
|
||||||
MediaQueueItemsInsertedInRangeCallback? onItemsInsertedInRange;
|
MediaQueueItemsInsertedInRangeCallback? onItemsInsertedInRange;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue