MediaSession.SetQueue(IList<MediaSession.QueueItem>) Method

Definition

Update the list of items in the play queue.

[Android.Runtime.Register("setQueue", "(Ljava/util/List;)V", "")]
public void SetQueue (System.Collections.Generic.IList<Android.Media.Session.MediaSession.QueueItem>? queue);
[<Android.Runtime.Register("setQueue", "(Ljava/util/List;)V", "")>]
member this.SetQueue : System.Collections.Generic.IList<Android.Media.Session.MediaSession.QueueItem> -> unit

Parameters

queue
IList<MediaSession.QueueItem>

A list of items in the play queue.

Attributes

Remarks

Update the list of items in the play queue. It is an ordered list and should contain the current item, and previous or upcoming items if they exist. Specify null if there is no current play queue.

The queue should be of reasonable size. If the play queue is unbounded within your app, it is better to send a reasonable amount in a sliding window instead.

Java documentation for android.media.session.MediaSession.setQueue(java.util.List<android.media.session.MediaSession.QueueItem>).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to