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, updatePlaybackMetadataForIndex
public long getContainerPersistentId()
com.apple.android.music.playback.queue.PlaybackQueueItemProvider
@Nullable public String getContainerStoreId()
com.apple.android.music.playback.queue.PlaybackQueueItemProvider
public int getContainerType()
com.apple.android.music.playback.queue.PlaybackQueueItemProvider
@Nullable public PlayerMediaItem getItemAtIndex(int index)
com.apple.android.music.playback.queue.PlaybackQueueItemProvider
index
- The index to fetch.public int getItemCount()
com.apple.android.music.playback.queue.PlaybackQueueItemProvider
public void populatePlayActivityEventForIndex(@NonNull com.apple.android.music.playback.reporting.PlayActivityEventBuilder builder, int index)
com.apple.android.music.playback.queue.PlaybackQueueItemProvider
populatePlayActivityEventForIndex
in interface com.apple.android.music.playback.queue.PlaybackQueueItemProvider
populatePlayActivityEventForIndex
in class com.apple.android.music.playback.queue.BasePlaybackQueueItemProvider
builder
- 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 Externalizable
readExternal
in class com.apple.android.music.playback.queue.BasePlaybackQueueItemProvider
IOException
ClassNotFoundException
public void release(boolean deleteCache)
com.apple.android.music.playback.queue.PlaybackQueueItemProvider
release
in interface com.apple.android.music.playback.queue.PlaybackQueueItemProvider
release
in class com.apple.android.music.playback.queue.BasePlaybackQueueItemProvider
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class com.apple.android.music.playback.queue.BasePlaybackQueueItemProvider
IOException
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in class com.apple.android.music.playback.queue.BasePlaybackQueueItemProvider