java.lang.Object | |
↳ | android.media.browse.MediaBrowser.MediaItem |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | FLAG_BROWSABLE | Flag: Indicates that the item has children of its own. | |||||||||
int | FLAG_PLAYABLE | Flag: Indicates that the item is playable. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new MediaItem for use in browsing media.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
| |||||||||||
Returns the description of the media.
| |||||||||||
Gets the flags of the item.
| |||||||||||
Returns the media id for this item.
| |||||||||||
Returns whether this item is browsable.
| |||||||||||
Returns whether this item is playable.
| |||||||||||
Returns a string containing a concise, human-readable description of this
object.
| |||||||||||
Flatten this object in to a Parcel.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
|
Flag: Indicates that the item has children of its own.
Flag: Indicates that the item is playable.
The id of this item may be passed to
playFromMediaId(String, Bundle)
to start playing it.
Create a new MediaItem for use in browsing media.
description | The description of the media, which must include a media id. |
---|---|
flags | The flags for this item. |
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
Returns the description of the media.
Returns whether this item is browsable.
Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
getClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toString
method
if you intend implementing your own toString
method.
Flatten this object in to a Parcel.
out | The Parcel in which the object should be written. |
---|---|
flags | Additional flags about how the object should be written.
May be 0 or PARCELABLE_WRITE_RETURN_VALUE .
|