public final class CatalogPlaybackQueueItemProvider
extends com.apple.android.music.playback.queue.BasePlaybackQueueItemProvider
| Modifier and Type | Class and Description |
|---|---|
static class |
CatalogPlaybackQueueItemProvider.Builder
A constructor that defines the builder for a catalog playback queue item provider.
|
| Modifier and Type | Field and Description |
|---|---|
static <any> |
CREATOR
The creator of the playback queue.
|
| Constructor and Description |
|---|
CatalogPlaybackQueueItemProvider() |
| Modifier and Type | Method and Description |
|---|---|
long |
getContainerPersistentId()
Gets the persistent id for the media container this provider represents, or 0 if this
provider does not represent a media container or the container does not have a persistent id.
|
String |
getContainerStoreId()
Gets the store id for the media container this provider represents, or null if this
provider does not represent a media container.
|
int |
getContainerType()
Gets the media container type this provider represents.
|
PlayerMediaItem |
getItemAtIndex(int index)
Gets the item at the specified index in this provider, or null if no element exists at the
specified index.
|
int |
getItemCount()
Gets the total number of media items this provider contains.
|
void |
populatePlayActivityEventForIndex(com.apple.android.music.playback.reporting.PlayActivityEventBuilder builder,
int index)
Populates the given PlayActivityEventBuilder with data for the item at the specified index.
|
void |
readExternal(ObjectInput in) |
void |
release(boolean deleteCache)
Releases this instance.
|
void |
writeExternal(ObjectOutput out) |
void |
writeToParcel(Parcel dest,
int flags) |
canAddToPlaybackQueue, canSetRadioLikeStateForIndex, describeContents, getContainerHashId, getGlobalShuffleMode, getId, getShuffleMode, getStartItemIndex, handleMessage, isDynamic, prepare, setCurrentIndex, setGlobalShuffleMode, setId, setRadioLikeStateForIndex, setShuffleMode, updatePlaybackMetadataForIndexpublic long getContainerPersistentId()
com.apple.android.music.playback.queue.PlaybackQueueItemProvider@Nullable public String getContainerStoreId()
com.apple.android.music.playback.queue.PlaybackQueueItemProviderpublic int getContainerType()
com.apple.android.music.playback.queue.PlaybackQueueItemProvider@Nullable public PlayerMediaItem getItemAtIndex(int index)
com.apple.android.music.playback.queue.PlaybackQueueItemProviderindex - The index to fetch.public int getItemCount()
com.apple.android.music.playback.queue.PlaybackQueueItemProviderpublic void populatePlayActivityEventForIndex(@NonNull
com.apple.android.music.playback.reporting.PlayActivityEventBuilder builder,
int index)
com.apple.android.music.playback.queue.PlaybackQueueItemProviderpopulatePlayActivityEventForIndex in interface com.apple.android.music.playback.queue.PlaybackQueueItemProviderpopulatePlayActivityEventForIndex in class com.apple.android.music.playback.queue.BasePlaybackQueueItemProviderbuilder - A PlayActivityEventBuilder to populate.index - The index of the item to use for data.public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class com.apple.android.music.playback.queue.BasePlaybackQueueItemProviderIOExceptionClassNotFoundExceptionpublic void release(boolean deleteCache)
com.apple.android.music.playback.queue.PlaybackQueueItemProviderrelease in interface com.apple.android.music.playback.queue.PlaybackQueueItemProviderrelease in class com.apple.android.music.playback.queue.BasePlaybackQueueItemProviderpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class com.apple.android.music.playback.queue.BasePlaybackQueueItemProviderIOExceptionpublic void writeToParcel(Parcel dest,
int flags)
writeToParcel in class com.apple.android.music.playback.queue.BasePlaybackQueueItemProvider