public interface PlayerMediaItem
Modifier and Type | Method and Description |
---|---|
String |
getAlbumArtistName()
Gets the album artist name for this item.
|
int |
getAlbumDiscCount()
Gets the total number of discs on the item's album.
|
int |
getAlbumDiscNumber()
Gets the disc number for this item, if it's part of an album.
|
String |
getAlbumSubscriptionStoreId()
Gets the subscription store ID for the item's album, which is null if this item does
not belong to an album.
|
String |
getAlbumTitle()
Gets the item's album title.
|
int |
getAlbumTrackCount()
Gets the total number of tracks on the item's album.
|
int |
getAlbumTrackNumber()
Gets the track number for this item, if it's part of an album.
|
String |
getArtistName()
Gets the artist name for this item.
|
String |
getArtistSubscriptionStoreId()
Gets the subscription store ID for the artists of this album, which is null if not applicable.
|
String |
getArtworkUrl()
Gets the artwork URL for this item, with the default dimensions.
|
String |
getArtworkUrl(int desiredWidth,
int desiredHeight)
Gets the artwork URL for this item, with the specified dimensions.
|
String |
getAssetUrl()
Gets the asset url (if available) for this item.
|
String |
getCloudLibraryUniversalId() |
String |
getComposerName()
Gets the name of the composer for this item.
|
String |
getCustomLyrics()
Gets the custom, user-supplied lyrics for this item, or null if no custom lyrics exist.
|
long |
getDuration()
Gets the playback duration in milliseconds for this item.
|
int |
getExplicitContentRating()
Gets the explicit content rating value for this item.
|
String |
getGenreName()
Gets the genre name for this item.
|
long |
getPersistentId()
Gets the persistent (device local) id for this item, or 0 if not applicable.
|
String |
getPlaybackEndpointParams()
Gets the playback endpoint parameters for this item.
|
int |
getPlaybackEndpointType()
Gets the playback endpoint type for this item.
|
String |
getPlaybackStoreId()
Gets the store id to be used for playback purposes.
|
int |
getRadioLikeState()
Gets the like state for this item, if it is being played in a radio context.
|
Date |
getReleaseDate()
Gets the release date for this item.
|
String |
getSubscriptionStoreId()
Gets the ID for this item in the subscription store, which is null if not applicable.
|
String |
getTitle()
Gets the title for this item.
|
int |
getType()
Gets the type of media for this item.
|
String |
getUrl()
Gets the URL for this item.
|
boolean |
hasCustomLyrics()
Gets whether this item has custom, user-supplied lyrics.
|
boolean |
hasDynamicMetadata()
Gets whether this item has dynamic metadata (metadata that can update as playback progresses).
|
boolean |
hasLyricsAvailable()
Gets whether this item has lyrics available.
|
boolean |
isCacheable()
Gets whether this item can cached locally.
|
boolean |
isExplicitContent()
A Boolean value that indicates whether this item is explicit content, which is applicable for audio content
and music videos.
|
boolean |
isPlayableContent()
A Boolean value that indicates whether this item is playable.
|
boolean |
shouldBookmarkPlayPosition()
Gets whether this item should bookmark its play position.
|
@Nullable String getAlbumArtistName()
int getAlbumDiscCount()
int getAlbumDiscNumber()
@Nullable String getAlbumSubscriptionStoreId()
@Nullable String getAlbumTitle()
int getAlbumTrackCount()
int getAlbumTrackNumber()
@Nullable String getArtistName()
@Nullable String getArtistSubscriptionStoreId()
@Nullable String getArtworkUrl()
@Nullable String getArtworkUrl(int desiredWidth, int desiredHeight)
desiredWidth
- The desired width in pixels.desiredHeight
- The desired height in pixels.@Nullable String getAssetUrl()
@Nullable String getCloudLibraryUniversalId()
@Nullable String getComposerName()
@Nullable String getCustomLyrics()
long getDuration()
int getExplicitContentRating()
@Nullable String getGenreName()
long getPersistentId()
@Nullable String getPlaybackEndpointParams()
int getPlaybackEndpointType()
@NonNull String getPlaybackStoreId()
int getRadioLikeState()
@Nullable Date getReleaseDate()
@Nullable String getSubscriptionStoreId()
@Nullable String getTitle()
int getType()
@Nullable String getUrl()
boolean hasCustomLyrics()
boolean hasDynamicMetadata()
boolean hasLyricsAvailable()
boolean isCacheable()
boolean isExplicitContent()
boolean isPlayableContent()
boolean shouldBookmarkPlayPosition()