MediaBrowserCompat.MediaItem

public static class MediaBrowserCompat.MediaItem
extends Object implements Parcelable

java.lang.Object
   ↳ android.support.v4.media.MediaBrowserCompat.MediaItem


A class with information on a single media item for use in browsing/searching media. MediaItems are application dependent so we cannot guarantee that they contain the right values.

Summary

Constants

int FLAG_BROWSABLE

Flag: Indicates that the item has children of its own.

int FLAG_PLAYABLE

Flag: Indicates that the item is playable.

Inherited constants

Fields

public static final Creator<MediaBrowserCompat.MediaItem> CREATOR

Public constructors

MediaItem(MediaDescriptionCompat description, int flags)

Create a new MediaItem for use in browsing media.

Public methods

int describeContents()
static MediaBrowserCompat.MediaItem fromMediaItem(Object itemObj)

Creates an instance from a framework MediaBrowser.MediaItem object.

static List<MediaBrowserCompat.MediaItem> fromMediaItemList(List<?> itemList)

Creates a list of MediaBrowserCompat.MediaItem objects from a framework MediaBrowser.MediaItem object list.

MediaDescriptionCompat getDescription()

Returns the description of the media.

int getFlags()

Gets the flags of the item.

String getMediaId()

Returns the media id in the MediaDescriptionCompat for this item.

boolean isBrowsable()

Returns whether this item is browsable.