MediaDescriptionCompat

public final class MediaDescriptionCompat
extends Object implements Parcelable

java.lang.Object
   ↳ android.support.v4.media.MediaDescriptionCompat


A simple set of metadata for a media item suitable for display. This can be created using the Builder or retrieved from existing metadata using MediaMetadataCompat.getDescription().

Summary

Nested classes

class MediaDescriptionCompat.Builder

Builder for MediaDescriptionCompat objects. 

Constants

long BT_FOLDER_TYPE_ALBUMS

The type of folder that contains folders categorized by album as specified in the section 6.10.2.2 of the Bluetooth AVRCP 1.5.

long BT_FOLDER_TYPE_ARTISTS

The type of folder that contains folders categorized by artist as specified in the section 6.10.2.2 of the Bluetooth AVRCP 1.5.

long BT_FOLDER_TYPE_GENRES

The type of folder that contains folders categorized by genre as specified in the section 6.10.2.2 of the Bluetooth AVRCP 1.5.

long BT_FOLDER_TYPE_MIXED

The type of folder that is unknown or contains media elements of mixed types as specified in the section 6.10.2.2 of the Bluetooth AVRCP 1.5.

long BT_FOLDER_TYPE_PLAYLISTS

The type of folder that contains folders categorized by playlist as specified in the section 6.10.2.2 of the Bluetooth AVRCP 1.5.

long BT_FOLDER_TYPE_TITLES

The type of folder that contains media elements only as specified in the section 6.10.2.2 of the Bluetooth AVRCP 1.5.

long BT_FOLDER_TYPE_YEARS

The type of folder that contains folders categorized by year as specified in the section 6.10.2.2 of the Bluetooth AVRCP 1.5.

String EXTRA_BT_FOLDER_TYPE

Used as a long extra field to indicate the bluetooth folder type of the media item as specified in the section 6.10.2.2 of the Bluetooth AVRCP 1.5.

String EXTRA_DOWNLOAD_STATUS

Used as a long extra field to indicate the download status of the media item.

long STATUS_DOWNLOADED

The status value to indicate the media item is downloaded for later offline playback.

long STATUS_DOWNLOADING

The status value to indicate the media item is being downloaded.

long STATUS_NOT_DOWNLOADED

The status value to indicate the media item is not downloaded.

Inherited constants

Fields

public static final Creator<MediaDescriptionCompat> CREATOR

Public methods

int describeContents()
static MediaDescriptionCompat fromMediaDescription(Object descriptionObj)

Creates an instance from a framework MediaDescription object.

CharSequence getDescription()

Returns a description suitable for display or null.

Bundle getExtras()

Returns any extras that were added to the description.

Bitmap getIconBitmap()

Returns a bitmap icon suitable for display or null.

Uri getIconUri()

Returns a Uri for an icon suitable for display or null.

Object getMediaDescription()

Gets the underlying framework MediaDescription object.

String getMediaId()

Returns the media id or null.

Uri getMediaUri()

Returns a Uri representing this content or null.

CharSequence getSubtitle()

Returns a subtitle suitable for display or null.

CharSequence getTitle()

Returns a title suitable for display or null.

String toString()
void writeToParcel(Parcel dest, int flags)

Inherited methods

Constan