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
getDescription()
.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
MediaDescriptionCompat.Builder |
Builder for MediaDescriptionCompat objects.
|
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
| |||||||||||
Creates an instance from a framework
MediaDescription object.
| |||||||||||
Returns a description suitable for display or null.
| |||||||||||
Returns any extras that were added to the description.
| |||||||||||
Returns a bitmap icon suitable for display or null.
| |||||||||||
Returns a Uri for an icon suitable for display or null.
| |||||||||||
Gets the underlying framework
MediaDescription
object.
| |||||||||||
Returns the media id or null.
| |||||||||||
Returns a subtitle suitable for display or null.
| |||||||||||
Returns a title suitable for display or null.
| |||||||||||
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
|
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
Creates an instance from a framework
MediaDescription
object.
This method is only supported on API 21+.
descriptionObj | A MediaDescription object, or
null if none. |
---|
MediaMetadataCompat
object, or null if
none.
Returns a description suitable for display or null.
Returns any extras that were added to the description.
Returns a bitmap icon suitable for display or null.
Returns a Uri for an icon suitable for display or null.
Gets the underlying framework MediaDescription
object.
This method is only supported on
LOLLIPOP
and later.
MediaDescription
object, or
null if none.
Returns a subtitle suitable for display or null.
Returns a title suitable for display or null.
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.
dest | 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 .
|