public static final class CatalogPlaybackQueueItemProvider.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
com.apple.android.music.playback.queue.PlaybackQueueItemProvider |
build()
Creates a new catalog playback queue item provider using the values specified to this builder.
|
CatalogPlaybackQueueItemProvider.Builder |
containers(int containerType,
String... containerIds)
Creates a playback queue populated by item containers with the specified IDs, which will be in the order of their containers, followed by the order of the IDs, unless a shuffle mode is set.
|
CatalogPlaybackQueueItemProvider.Builder |
items(int itemType,
String... itemIds)
Creates a playback queue populated by items with the specified IDs, which will be in the order specified unless a shuffle mode is set.
|
CatalogPlaybackQueueItemProvider.Builder |
shuffleMode(int shuffleMode)
Sets the desired playback shuffle mode for the playback queue.
|
CatalogPlaybackQueueItemProvider.Builder |
startItemIndex(int startItemIndex)
Starts playback from the specified index, rather than from the start of the playback queue.
|
public com.apple.android.music.playback.queue.PlaybackQueueItemProvider build()
public CatalogPlaybackQueueItemProvider.Builder containers(int containerType, String... containerIds)
containerType
- The type of containers to fetch.containerIds
- The ids of the containers to fetch.public CatalogPlaybackQueueItemProvider.Builder items(int itemType, String... itemIds)
itemType
- The type of items to fetch.itemIds
- The ids of the items to fetch.public CatalogPlaybackQueueItemProvider.Builder shuffleMode(int shuffleMode)
shuffleMode
- The desired playback shuffle mode.public CatalogPlaybackQueueItemProvider.Builder startItemIndex(int startItemIndex)
startItemIndex
- The index to start playback from.