Package com.google.android.exoplayer2
Class MediaMetadata
- java.lang.Object
-
- com.google.android.exoplayer2.MediaMetadata
-
- All Implemented Interfaces:
Bundleable
public final class MediaMetadata extends Object implements Bundleable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMediaMetadata.BuilderA builder forMediaMetadatainstances.static interfaceMediaMetadata.FolderTypeThe folder type of the media item.static interfaceMediaMetadata.MediaTypeThe type of content described by the media item.static interfaceMediaMetadata.PictureTypeThe picture type of the artwork.-
Nested classes/interfaces inherited from interface com.google.android.exoplayer2.Bundleable
Bundleable.Creator<T extends Bundleable>
-
-
Field Summary
Fields Modifier and Type Field Description CharSequencealbumArtistOptional album artist.CharSequencealbumTitleOptional album title.CharSequenceartistOptional artist.byte[]artworkDataOptional artwork data as a compressed byte array.@PictureType IntegerartworkDataTypeOptionalMediaMetadata.PictureTypeof the artwork data.UriartworkUriOptional artworkUri.CharSequencecompilationOptional compilation.CharSequencecomposerOptional composer.CharSequenceconductorOptional conductor.static Bundleable.Creator<MediaMetadata>CREATORObject that can restoreMediaMetadatafrom aBundle.CharSequencedescriptionOptional description.IntegerdiscNumberOptional disc number.CharSequencedisplayTitleOptional display title.static MediaMetadataEMPTYEmptyMediaMetadata.BundleextrasOptional extrasBundle.static intFOLDER_TYPE_ALBUMSType for a folder containing media categorized by album.static intFOLDER_TYPE_ARTISTSType for a folder containing media categorized by artist.static intFOLDER_TYPE_GENRESType for a folder containing media categorized by genre.static intFOLDER_TYPE_MIXEDType for a folder containing media of mixed types.static intFOLDER_TYPE_NONEType for an item that is not a folder.static intFOLDER_TYPE_PLAYLISTSType for a folder containing a playlist.static intFOLDER_TYPE_TITLESType for a folder containing only playable media.static intFOLDER_TYPE_YEARSType for a folder containing media categorized by year.@FolderType IntegerfolderTypeOptionalMediaMetadata.FolderType.CharSequencegenreOptional genre.BooleanisBrowsableOptional boolean to indicate that the media is a browsable folder.BooleanisPlayableOptional boolean to indicate that the media is playable.static intMEDIA_TYPE_ALBUMMediaMetadata.MediaTypefor a group of items (e.g.,music) belonging to an album.static intMEDIA_TYPE_ARTISTMediaMetadata.MediaTypefor a group of items (e.g.,music) from the same artist.static intMEDIA_TYPE_AUDIO_BOOKMediaMetadata.MediaTypefor a group of items forming an audio book.static intMEDIA_TYPE_AUDIO_BOOK_CHAPTERMediaMetadata.MediaTypefor an audio book chapter.static intMEDIA_TYPE_FOLDER_ALBUMSMediaMetadata.MediaTypefor a folder containing albums.static intMEDIA_TYPE_FOLDER_ARTISTSMediaMetadata.MediaTypefor a folder containing artists.static intMEDIA_TYPE_FOLDER_AUDIO_BOOKSMediaMetadata.MediaTypefor a folder containing audio books.static intMEDIA_TYPE_FOLDER_GENRESMediaMetadata.MediaTypefor a folder containing genres.static intMEDIA_TYPE_FOLDER_MIXEDMediaMetadata.MediaTypefor a folder with mixed or undetermined content.static intMEDIA_TYPE_FOLDER_MOVIESMediaMetadata.MediaTypefor a folder containing movies.static intMEDIA_TYPE_FOLDER_NEWSMediaMetadata.MediaTypefor a folder containing news.static intMEDIA_TYPE_FOLDER_PLAYLISTSMediaMetadata.MediaTypefor a folder containing playlists.static intMEDIA_TYPE_FOLDER_PODCASTSMediaMetadata.MediaTypefor a folder containing podcasts.static intMEDIA_TYPE_FOLDER_RADIO_STATIONSMediaMetadata.MediaTypefor a folder containing radio stations.static intMEDIA_TYPE_FOLDER_TRAILERSMediaMetadata.MediaTypefor a folder containing movie trailers.static intMEDIA_TYPE_FOLDER_TV_CHANNELSMediaMetadata.MediaTypefor a folder containing TV channels.static intMEDIA_TYPE_FOLDER_TV_SERIESMediaMetadata.MediaTypefor a folder containing TV series.static intMEDIA_TYPE_FOLDER_TV_SHOWSMediaMetadata.MediaTypefor a folder containing TV shows.static intMEDIA_TYPE_FOLDER_VIDEOSMediaMetadata.MediaTypefor a folder containing videos.static intMEDIA_TYPE_FOLDER_YEARSMediaMetadata.MediaTypefor a folder containing years.static intMEDIA_TYPE_GENREMediaMetadata.MediaTypefor a group of items (e.g.,music) of the same genre.static intMEDIA_TYPE_MIXEDMedia of undetermined type or a mix of multiple media types.static intMEDIA_TYPE_MOVIEMediaMetadata.MediaTypefor a movie.static intMEDIA_TYPE_MUSICMediaMetadata.MediaTypefor music.static intMEDIA_TYPE_NEWSMediaMetadata.MediaTypefor news.static intMEDIA_TYPE_PLAYLISTMediaMetadata.MediaTypefor a group of items (e.g.,music) forming a playlist.static intMEDIA_TYPE_PODCASTMediaMetadata.MediaTypefor a group of items belonging to a podcast.static intMEDIA_TYPE_PODCAST_EPISODEMediaMetadata.MediaTypefor a podcast episode.static intMEDIA_TYPE_RADIO_STATIONMediaMetadata.MediaTypefor a radio station.static intMEDIA_TYPE_TRAILERMediaMetadata.MediaTypefor a movie trailer.static intMEDIA_TYPE_TV_CHANNELMediaMetadata.MediaTypefor a group of items that are part of a TV channel.static intMEDIA_TYPE_TV_SEASONMediaMetadata.MediaTypefor a group of items that are part of a TV series.static intMEDIA_TYPE_TV_SERIESMediaMetadata.MediaTypefor a group of items that are part of a TV series.static intMEDIA_TYPE_TV_SHOWMediaMetadata.MediaTypefor a TV show.static intMEDIA_TYPE_VIDEOMediaMetadata.MediaTypefor a video.static intMEDIA_TYPE_YEARMediaMetadata.MediaTypefor a group of items (e.g.,music) from the same year.@MediaType IntegermediaTypeOptionalMediaMetadata.MediaType.RatingoverallRatingOptional overallRating.static intPICTURE_TYPE_A_BRIGHT_COLORED_FISHstatic intPICTURE_TYPE_ARTIST_PERFORMERstatic intPICTURE_TYPE_BACK_COVERstatic intPICTURE_TYPE_BAND_ARTIST_LOGOstatic intPICTURE_TYPE_BAND_ORCHESTRAstatic intPICTURE_TYPE_COMPOSERstatic intPICTURE_TYPE_CONDUCTORstatic intPICTURE_TYPE_DURING_PERFORMANCEstatic intPICTURE_TYPE_DURING_RECORDINGstatic intPICTURE_TYPE_FILE_ICONstatic intPICTURE_TYPE_FILE_ICON_OTHERstatic intPICTURE_TYPE_FRONT_COVERstatic intPICTURE_TYPE_ILLUSTRATIONstatic intPICTURE_TYPE_LEAD_ARTIST_PERFORMERstatic intPICTURE_TYPE_LEAFLET_PAGEstatic intPICTURE_TYPE_LYRICISTstatic intPICTURE_TYPE_MEDIAstatic intPICTURE_TYPE_MOVIE_VIDEO_SCREEN_CAPTUREstatic intPICTURE_TYPE_OTHERstatic intPICTURE_TYPE_PUBLISHER_STUDIO_LOGOstatic intPICTURE_TYPE_RECORDING_LOCATIONIntegerrecordingDayOptional day of the recording date.IntegerrecordingMonthOptional month of the recording date.IntegerrecordingYearOptional year of the recording date.IntegerreleaseDayOptional day of the release date.IntegerreleaseMonthOptional month of the release date.IntegerreleaseYearOptional year of the release date.CharSequencestationOptional name of the station streaming the media.CharSequencesubtitleOptional subtitle.CharSequencetitleOptional title.IntegertotalDiscCountOptional total number of discs.IntegertotalTrackCountOptional total number of tracks.IntegertrackNumberOptional track number.RatinguserRatingOptional userRating.CharSequencewriterOptional writer.IntegeryearDeprecated.UserecordingYearinstead.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MediaMetadata.BuilderbuildUpon()Returns a newMediaMetadata.Builderinstance with the currentMediaMetadatafields.booleanequals(Object obj)inthashCode()BundletoBundle()Returns aBundlerepresenting the information stored in this object.
-
-
-
Field Detail
-
MEDIA_TYPE_MIXED
public static final int MEDIA_TYPE_MIXED
Media of undetermined type or a mix of multiple media types.- See Also:
- Constant Field Values
-
MEDIA_TYPE_MUSIC
public static final int MEDIA_TYPE_MUSIC
MediaMetadata.MediaTypefor music.- See Also:
- Constant Field Values
-
MEDIA_TYPE_AUDIO_BOOK_CHAPTER
public static final int MEDIA_TYPE_AUDIO_BOOK_CHAPTER
MediaMetadata.MediaTypefor an audio book chapter.- See Also:
- Constant Field Values
-
MEDIA_TYPE_PODCAST_EPISODE
public static final int MEDIA_TYPE_PODCAST_EPISODE
MediaMetadata.MediaTypefor a podcast episode.- See Also:
- Constant Field Values
-
MEDIA_TYPE_RADIO_STATION
public static final int MEDIA_TYPE_RADIO_STATION
MediaMetadata.MediaTypefor a radio station.- See Also:
- Constant Field Values
-
MEDIA_TYPE_NEWS
public static final int MEDIA_TYPE_NEWS
MediaMetadata.MediaTypefor news.- See Also:
- Constant Field Values
-
MEDIA_TYPE_VIDEO
public static final int MEDIA_TYPE_VIDEO
MediaMetadata.MediaTypefor a video.- See Also:
- Constant Field Values
-
MEDIA_TYPE_TRAILER
public static final int MEDIA_TYPE_TRAILER
MediaMetadata.MediaTypefor a movie trailer.- See Also:
- Constant Field Values
-
MEDIA_TYPE_MOVIE
public static final int MEDIA_TYPE_MOVIE
MediaMetadata.MediaTypefor a movie.- See Also:
- Constant Field Values
-
MEDIA_TYPE_TV_SHOW
public static final int MEDIA_TYPE_TV_SHOW
MediaMetadata.MediaTypefor a TV show.- See Also:
- Constant Field Values
-
MEDIA_TYPE_ALBUM
public static final int MEDIA_TYPE_ALBUM
MediaMetadata.MediaTypefor a group of items (e.g.,music) belonging to an album.- See Also:
- Constant Field Values
-
MEDIA_TYPE_ARTIST
public static final int MEDIA_TYPE_ARTIST
MediaMetadata.MediaTypefor a group of items (e.g.,music) from the same artist.- See Also:
- Constant Field Values
-
MEDIA_TYPE_GENRE
public static final int MEDIA_TYPE_GENRE
MediaMetadata.MediaTypefor a group of items (e.g.,music) of the same genre.- See Also:
- Constant Field Values
-
MEDIA_TYPE_PLAYLIST
public static final int MEDIA_TYPE_PLAYLIST
MediaMetadata.MediaTypefor a group of items (e.g.,music) forming a playlist.- See Also:
- Constant Field Values
-
MEDIA_TYPE_YEAR
public static final int MEDIA_TYPE_YEAR
MediaMetadata.MediaTypefor a group of items (e.g.,music) from the same year.- See Also:
- Constant Field Values
-
MEDIA_TYPE_AUDIO_BOOK
public static final int MEDIA_TYPE_AUDIO_BOOK
MediaMetadata.MediaTypefor a group of items forming an audio book. Items in this group are typically of typeMEDIA_TYPE_AUDIO_BOOK_CHAPTER.- See Also:
- Constant Field Values
-
MEDIA_TYPE_PODCAST
public static final int MEDIA_TYPE_PODCAST
MediaMetadata.MediaTypefor a group of items belonging to a podcast. Items in this group are typically of typeMEDIA_TYPE_PODCAST_EPISODE.- See Also:
- Constant Field Values
-
MEDIA_TYPE_TV_CHANNEL
public static final int MEDIA_TYPE_TV_CHANNEL
MediaMetadata.MediaTypefor a group of items that are part of a TV channel. Items in this group are typically of typeMEDIA_TYPE_TV_SHOW,MEDIA_TYPE_TV_SERIESorMEDIA_TYPE_MOVIE.- See Also:
- Constant Field Values
-
MEDIA_TYPE_TV_SERIES
public static final int MEDIA_TYPE_TV_SERIES
MediaMetadata.MediaTypefor a group of items that are part of a TV series. Items in this group are typically of typeMEDIA_TYPE_TV_SHOWorMEDIA_TYPE_TV_SEASON.- See Also:
- Constant Field Values
-
MEDIA_TYPE_TV_SEASON
public static final int MEDIA_TYPE_TV_SEASON
MediaMetadata.MediaTypefor a group of items that are part of a TV series. Items in this group are typically of typeMEDIA_TYPE_TV_SHOW.- See Also:
- Constant Field Values
-
MEDIA_TYPE_FOLDER_MIXED
public static final int MEDIA_TYPE_FOLDER_MIXED
MediaMetadata.MediaTypefor a folder with mixed or undetermined content.- See Also:
- Constant Field Values
-
MEDIA_TYPE_FOLDER_ALBUMS
public static final int MEDIA_TYPE_FOLDER_ALBUMS
MediaMetadata.MediaTypefor a folder containing albums.- See Also:
- Constant Field Values
-
MEDIA_TYPE_FOLDER_ARTISTS
public static final int MEDIA_TYPE_FOLDER_ARTISTS
MediaMetadata.MediaTypefor a folder containing artists.- See Also:
- Constant Field Values
-
MEDIA_TYPE_FOLDER_GENRES
public static final int MEDIA_TYPE_FOLDER_GENRES
MediaMetadata.MediaTypefor a folder containing genres.- See Also:
- Constant Field Values
-
MEDIA_TYPE_FOLDER_PLAYLISTS
public static final int MEDIA_TYPE_FOLDER_PLAYLISTS
MediaMetadata.MediaTypefor a folder containing playlists.- See Also:
- Constant Field Values
-
MEDIA_TYPE_FOLDER_YEARS
public static final int MEDIA_TYPE_FOLDER_YEARS
MediaMetadata.MediaTypefor a folder containing years.- See Also:
- Constant Field Values
-
MEDIA_TYPE_FOLDER_AUDIO_BOOKS
public static final int MEDIA_TYPE_FOLDER_AUDIO_BOOKS
MediaMetadata.MediaTypefor a folder containing audio books.- See Also:
- Constant Field Values
-
MEDIA_TYPE_FOLDER_PODCASTS
public static final int MEDIA_TYPE_FOLDER_PODCASTS
MediaMetadata.MediaTypefor a folder containing podcasts.- See Also:
- Constant Field Values
-
MEDIA_TYPE_FOLDER_TV_CHANNELS
public static final int MEDIA_TYPE_FOLDER_TV_CHANNELS
MediaMetadata.MediaTypefor a folder containing TV channels.- See Also:
- Constant Field Values
-
MEDIA_TYPE_FOLDER_TV_SERIES
public static final int MEDIA_TYPE_FOLDER_TV_SERIES
MediaMetadata.MediaTypefor a folder containing TV series.- See Also:
- Constant Field Values
-
MEDIA_TYPE_FOLDER_TV_SHOWS
public static final int MEDIA_TYPE_FOLDER_TV_SHOWS
MediaMetadata.MediaTypefor a folder containing TV shows.- See Also:
- Constant Field Values
-
MEDIA_TYPE_FOLDER_RADIO_STATIONS
public static final int MEDIA_TYPE_FOLDER_RADIO_STATIONS
MediaMetadata.MediaTypefor a folder containing radio stations.- See Also:
- Constant Field Values
-
MEDIA_TYPE_FOLDER_NEWS
public static final int MEDIA_TYPE_FOLDER_NEWS
MediaMetadata.MediaTypefor a folder containing news.- See Also:
- Constant Field Values
-
MEDIA_TYPE_FOLDER_VIDEOS
public static final int MEDIA_TYPE_FOLDER_VIDEOS
MediaMetadata.MediaTypefor a folder containing videos.- See Also:
- Constant Field Values
-
MEDIA_TYPE_FOLDER_TRAILERS
public static final int MEDIA_TYPE_FOLDER_TRAILERS
MediaMetadata.MediaTypefor a folder containing movie trailers.- See Also:
- Constant Field Values
-
MEDIA_TYPE_FOLDER_MOVIES
public static final int MEDIA_TYPE_FOLDER_MOVIES
MediaMetadata.MediaTypefor a folder containing movies.- See Also:
- Constant Field Values
-
FOLDER_TYPE_NONE
public static final int FOLDER_TYPE_NONE
Type for an item that is not a folder.- See Also:
- Constant Field Values
-
FOLDER_TYPE_MIXED
public static final int FOLDER_TYPE_MIXED
Type for a folder containing media of mixed types.- See Also:
- Constant Field Values
-
FOLDER_TYPE_TITLES
public static final int FOLDER_TYPE_TITLES
Type for a folder containing only playable media.- See Also:
- Constant Field Values
-
FOLDER_TYPE_ALBUMS
public static final int FOLDER_TYPE_ALBUMS
Type for a folder containing media categorized by album.- See Also:
- Constant Field Values
-
FOLDER_TYPE_ARTISTS
public static final int FOLDER_TYPE_ARTISTS
Type for a folder containing media categorized by artist.- See Also:
- Constant Field Values
-
FOLDER_TYPE_GENRES
public static final int FOLDER_TYPE_GENRES
Type for a folder containing media categorized by genre.- See Also:
- Constant Field Values
-
FOLDER_TYPE_PLAYLISTS
public static final int FOLDER_TYPE_PLAYLISTS
Type for a folder containing a playlist.- See Also:
- Constant Field Values
-
FOLDER_TYPE_YEARS
public static final int FOLDER_TYPE_YEARS
Type for a folder containing media categorized by year.- See Also:
- Constant Field Values
-
PICTURE_TYPE_OTHER
public static final int PICTURE_TYPE_OTHER
- See Also:
- Constant Field Values
-
PICTURE_TYPE_FILE_ICON
public static final int PICTURE_TYPE_FILE_ICON
- See Also:
- Constant Field Values
-
PICTURE_TYPE_FILE_ICON_OTHER
public static final int PICTURE_TYPE_FILE_ICON_OTHER
- See Also:
- Constant Field Values
-
PICTURE_TYPE_FRONT_COVER
public static final int PICTURE_TYPE_FRONT_COVER
- See Also:
- Constant Field Values
-
PICTURE_TYPE_BACK_COVER
public static final int PICTURE_TYPE_BACK_COVER
- See Also:
- Constant Field Values
-
PICTURE_TYPE_LEAFLET_PAGE
public static final int PICTURE_TYPE_LEAFLET_PAGE
- See Also:
- Constant Field Values
-
PICTURE_TYPE_MEDIA
public static final int PICTURE_TYPE_MEDIA
- See Also:
- Constant Field Values
-
PICTURE_TYPE_LEAD_ARTIST_PERFORMER
public static final int PICTURE_TYPE_LEAD_ARTIST_PERFORMER
- See Also:
- Constant Field Values
-
PICTURE_TYPE_ARTIST_PERFORMER
public static final int PICTURE_TYPE_ARTIST_PERFORMER
- See Also:
- Constant Field Values
-
PICTURE_TYPE_CONDUCTOR
public static final int PICTURE_TYPE_CONDUCTOR
- See Also:
- Constant Field Values
-
PICTURE_TYPE_BAND_ORCHESTRA
public static final int PICTURE_TYPE_BAND_ORCHESTRA
- See Also:
- Constant Field Values
-
PICTURE_TYPE_COMPOSER
public static final int PICTURE_TYPE_COMPOSER
- See Also:
- Constant Field Values
-
PICTURE_TYPE_LYRICIST
public static final int PICTURE_TYPE_LYRICIST
- See Also:
- Constant Field Values
-
PICTURE_TYPE_RECORDING_LOCATION
public static final int PICTURE_TYPE_RECORDING_LOCATION
- See Also:
- Constant Field Values
-
PICTURE_TYPE_DURING_RECORDING
public static final int PICTURE_TYPE_DURING_RECORDING
- See Also:
- Constant Field Values
-
PICTURE_TYPE_DURING_PERFORMANCE
public static final int PICTURE_TYPE_DURING_PERFORMANCE
- See Also:
- Constant Field Values
-
PICTURE_TYPE_MOVIE_VIDEO_SCREEN_CAPTURE
public static final int PICTURE_TYPE_MOVIE_VIDEO_SCREEN_CAPTURE
- See Also:
- Constant Field Values
-
PICTURE_TYPE_A_BRIGHT_COLORED_FISH
public static final int PICTURE_TYPE_A_BRIGHT_COLORED_FISH
- See Also:
- Constant Field Values
-
PICTURE_TYPE_ILLUSTRATION
public static final int PICTURE_TYPE_ILLUSTRATION
- See Also:
- Constant Field Values
-
PICTURE_TYPE_BAND_ARTIST_LOGO
public static final int PICTURE_TYPE_BAND_ARTIST_LOGO
- See Also:
- Constant Field Values
-
PICTURE_TYPE_PUBLISHER_STUDIO_LOGO
public static final int PICTURE_TYPE_PUBLISHER_STUDIO_LOGO
- See Also:
- Constant Field Values
-
EMPTY
public static final MediaMetadata EMPTY
EmptyMediaMetadata.
-
title
@Nullable public final CharSequence title
Optional title.
-
artist
@Nullable public final CharSequence artist
Optional artist.
-
albumTitle
@Nullable public final CharSequence albumTitle
Optional album title.
-
albumArtist
@Nullable public final CharSequence albumArtist
Optional album artist.
-
displayTitle
@Nullable public final CharSequence displayTitle
Optional display title.
-
subtitle
@Nullable public final CharSequence subtitle
Optional subtitle.This is the secondary title of the media, unrelated to closed captions.
-
description
@Nullable public final CharSequence description
Optional description.
-
artworkData
@Nullable public final byte[] artworkData
Optional artwork data as a compressed byte array.
-
artworkDataType
@Nullable @PictureType public final @PictureType Integer artworkDataType
OptionalMediaMetadata.PictureTypeof the artwork data.
-
trackNumber
@Nullable public final Integer trackNumber
Optional track number.
-
totalTrackCount
@Nullable public final Integer totalTrackCount
Optional total number of tracks.
-
folderType
@Nullable @FolderType public final @FolderType Integer folderType
OptionalMediaMetadata.FolderType.This field will be deprecated. Use
isBrowsableto indicate if an item is a browsable folder and usemediaTypeto indicate the type of the folder.
-
isBrowsable
@Nullable public final Boolean isBrowsable
Optional boolean to indicate that the media is a browsable folder.
-
isPlayable
@Nullable public final Boolean isPlayable
Optional boolean to indicate that the media is playable.
-
year
@Deprecated @Nullable public final Integer year
Deprecated.UserecordingYearinstead.
-
recordingYear
@Nullable public final Integer recordingYear
Optional year of the recording date.
-
recordingMonth
@Nullable public final Integer recordingMonth
Optional month of the recording date.Note that there is no guarantee that the month and day are a valid combination.
-
recordingDay
@Nullable public final Integer recordingDay
Optional day of the recording date.Note that there is no guarantee that the month and day are a valid combination.
-
releaseYear
@Nullable public final Integer releaseYear
Optional year of the release date.
-
releaseMonth
@Nullable public final Integer releaseMonth
Optional month of the release date.Note that there is no guarantee that the month and day are a valid combination.
-
releaseDay
@Nullable public final Integer releaseDay
Optional day of the release date.Note that there is no guarantee that the month and day are a valid combination.
-
writer
@Nullable public final CharSequence writer
Optional writer.
-
composer
@Nullable public final CharSequence composer
Optional composer.
-
conductor
@Nullable public final CharSequence conductor
Optional conductor.
-
discNumber
@Nullable public final Integer discNumber
Optional disc number.
-
totalDiscCount
@Nullable public final Integer totalDiscCount
Optional total number of discs.
-
genre
@Nullable public final CharSequence genre
Optional genre.
-
compilation
@Nullable public final CharSequence compilation
Optional compilation.
-
station
@Nullable public final CharSequence station
Optional name of the station streaming the media.
-
mediaType
@Nullable public final @MediaType Integer mediaType
OptionalMediaMetadata.MediaType.
-
extras
@Nullable public final Bundle extras
Optional extrasBundle.Given the complexities of checking the equality of two
Bundles, this is not considered in theequals(Object)orhashCode().
-
CREATOR
public static final Bundleable.Creator<MediaMetadata> CREATOR
Object that can restoreMediaMetadatafrom aBundle.
-
-
Method Detail
-
buildUpon
public MediaMetadata.Builder buildUpon()
Returns a newMediaMetadata.Builderinstance with the currentMediaMetadatafields.
-
toBundle
public Bundle toBundle()
Description copied from interface:BundleableReturns aBundlerepresenting the information stored in this object.- Specified by:
toBundlein interfaceBundleable
-
-