Java android.support.v4.media MediaMetadataCompat fields, constructors, methods, implement or subclass

Example usage for Java android.support.v4.media MediaMetadataCompat fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.support.v4.media MediaMetadataCompat.

The text is from its open source code.

Field

StringMETADATA_KEY_TITLE
The title of the media.
StringMETADATA_KEY_ARTIST
The artist of the media.
StringMETADATA_KEY_DURATION
The duration of the media in ms.
StringMETADATA_KEY_ALBUM
The album title for the media.
StringMETADATA_KEY_AUTHOR
The author of the media.
StringMETADATA_KEY_WRITER
The writer of the media.
StringMETADATA_KEY_COMPILATION
The compilation status of the media.
StringMETADATA_KEY_DATE
The date the media was created or published.
StringMETADATA_KEY_YEAR
The year the media was created or published as a long.
StringMETADATA_KEY_GENRE
The genre of the media.
StringMETADATA_KEY_TRACK_NUMBER
The track number for the media.
StringMETADATA_KEY_NUM_TRACKS
The number of tracks in the media's original source.
StringMETADATA_KEY_DISC_NUMBER
The disc number for the media's original source.
StringMETADATA_KEY_ALBUM_ARTIST
The artist for the album of the media's original source.
StringMETADATA_KEY_ART
The artwork for the media as a Bitmap .
StringMETADATA_KEY_ART_URI
The artwork for the media as a Uri style String.
StringMETADATA_KEY_ALBUM_ART
The artwork for the album of the media's original source as a Bitmap .
StringMETADATA_KEY_ALBUM_ART_URI
The artwork for the album of the media's original source as a Uri style String.
StringMETADATA_KEY_USER_RATING
The user's rating for the media.
StringMETADATA_KEY_DISPLAY_TITLE
A title that is suitable for display to the user.
StringMETADATA_KEY_DISPLAY_SUBTITLE
A subtitle that is suitable for display to the user.
StringMETADATA_KEY_DISPLAY_DESCRIPTION
A description that is suitable for display to the user.
StringMETADATA_KEY_DISPLAY_ICON
An icon or thumbnail that is suitable for display to the user.
StringMETADATA_KEY_DISPLAY_ICON_URI
An icon or thumbnail that is suitable for display to the user.
StringMETADATA_KEY_MEDIA_ID
A String key for identifying the content.
StringMETADATA_KEY_MEDIA_URI
A Uri formatted String representing the content.
StringMETADATA_KEY_ADVERTISEMENT
Whether the media is an advertisement.

Method

booleancontainsKey(String key)
Returns true if the given key is contained in the metadata
BitmapgetBitmap(@BitmapKey String key)
Return a Bitmap for the given key or null if no bitmap exists for the given key.
BundlegetBundle()
Gets a copy of the bundle for this metadata object.
MediaDescriptionCompatgetDescription()
Returns a simple description of this metadata for display purposes.
longgetLong(@LongKey String key)
Returns the value associated with the given key, or 0L if no long exists for the given key.
ObjectgetMediaMetadata()
Gets the underlying framework android.media.MediaMetadata object.
StringgetString(@TextKey String key)
Returns the value associated with the given key, or null if no mapping of the desired type exists for the given key or a null value is explicitly associated with the key.
CharSequencegetText(@TextKey String key)
Returns the value associated with the given key, or null if no mapping of the desired type exists for the given key or a null value is explicitly associated with the key.