Google は、黒人コミュニティに対する人種平等の促進に取り組んでいます。取り組みを見る

MediaMetadataCompat

class MediaMetadataCompat : Parcelable
kotlin.Any
   ↳ android.support.v4.media.MediaMetadataCompat

Contains metadata about an item, such as the title, artist, etc.

Summary

Nested classes

Use to build MediaMetadata objects.

Constants

static String

Whether the media is an advertisement.

static String

The album title for the media.

static String

The artwork for the album of the media's original source as a Bitmap.

static String

The artist for the album of the media's original source.

static String

The artwork for the album of the media's original source as a Uri style String.

static String

The artwork for the media as a Bitmap.

static String

The artist of the media.

static String

The artwork for the media as a Uri style String.

static String

The author of the media.

static String

The bluetooth folder type of the media specified in the section 6.

static String

The compilation status of the media.

static String

The composer of the media.

static String

The date the media was created or published.

static String

The disc number for the media's original source.

static String

A description that is suitable for display to the user.

static String

An icon or thumbnail that is suitable for display to the user.

static String

An icon or thumbnail that is suitable for display to the user.

static String

A subtitle that is suitable for display to the user.

static String

A title that is suitable for display to the user.

static String

The download status of the media which will be used for later offline playback.

static String

The duration of the media in ms.

static String

The genre of the media.

static String

A String key for identifying the content.

static String

A Uri formatted String representing the content.

static String

The number of tracks in the media's original source.

static String

The overall rating for the media.

static String

The title of the media.

static String

The track number for the media.

static String

The user's rating for the media.

static String

The writer of the media.

static String

The year the media was created or published as a long.

Public methods

Boolean

Returns true if the given key is contained in the metadata

Int

static MediaMetadataCompat!
fromMediaMetadata(metadataObj: Any!)

Creates an instance from a framework android.media.MediaMetadata object.

Bitmap!

Return a Bitmap for the given key or null if no bitmap exists for the given key.

Bundle!

Gets a copy of the bundle for this metadata object.

MediaDescriptionCompat!

Returns a simple description of this metadata for display purposes.

Long
getLong(key: String!)

Returns the value associated with the given key, or 0L if no long exists for the given key.

Any!

Gets the underlying framework android.media.MediaMetadata object.

RatingCompat!

Return a RatingCompat for the given key or null if no rating exists for the given key.

String!

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.

CharSequence!
getText(key: String!)

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.

MutableSet<String!>!

Returns a Set containing the Strings used as keys in this metadata.

Int

Get the number of fields in this metadata.

Unit
writeToParcel(dest: Parcel!, flags: Int)

Properties

static Creator<MediaMetadataCompat!>!

Constants

METADATA_KEY_ADVERTISEMENT

static val METADATA_KEY_ADVERTISEMENT: String

Whether the media is an advertisement. A value of 0 indicates it is not an advertisement. A value of 1 or non-zero indicates it is an advertisement. If not specified, this value is set to 0 by default.

Value: "android.media.metadata.ADVERTISEMENT"

METADATA_KEY_ALBUM

static val METADATA_KEY_ALBUM: String

The album title for the media.

Value: "android.media.metadata.ALBUM"

METADATA_KEY_ALBUM_ART

static val METADATA_KEY_ALBUM_ART: String

The artwork for the album of the media's original source as a Bitmap. The artwork should be relatively small and may be scaled down if it is too large. For higher resolution artwork METADATA_KEY_ALBUM_ART_URI should be used instead.

Value: "android.media.metadata.ALBUM_ART"

METADATA_KEY_ALBUM_ARTIST

static val METADATA_KEY_ALBUM_ARTIST: String

The artist for the album of the media's original source.

Value: "android.media.metadata.ALBUM_ARTIST"

METADATA_KEY_ALBUM_ART_URI

static val METADATA_KEY_ALBUM_ART_URI: String

The artwork for the album of the media's original source as a Uri style String.

Value: "android.media.metadata.ALBUM_ART_URI"

METADATA_KEY_ART

static val METADATA_KEY_ART: String

The artwork for the media as a Bitmap. The artwork should be relatively small and may be scaled down if it is too large. For higher resolution artwork METADATA_KEY_ART_URI should be used instead.

Value: "android.media.metadata.ART"

METADATA_KEY_ARTIST

static val METADATA_KEY_ARTIST: String

The artist of the media.

Value: "android.media.metadata.ARTIST"

METADATA_KEY_ART_URI

static val METADATA_KEY_ART_URI: String

The artwork for the media as a Uri style String.

Value: "android.media.metadata.ART_URI"

METADATA_KEY_AUTHOR

static val METADATA_KEY_AUTHOR: String

The author of the media.

Value: "android.media.metadata.AUTHOR"

METADATA_KEY_BT_FOLDER_TYPE

static val METADATA_KEY_BT_FOLDER_TYPE: String

The bluetooth folder type of the media specified in the section 6.10.2.2 of the Bluetooth AVRCP 1.5. It should be one of the following:

Value: "android.media.metadata.BT_FOLDER_TYPE"

METADATA_KEY_COMPILATION

static val METADATA_KEY_COMPILATION: String

The compilation status of the media.

Value: "android.media.metadata.COMPILATION"

METADATA_KEY_COMPOSER

static val METADATA_KEY_COMPOSER: String

The composer of the media.

Value: "android.media.metadata.COMPOSER"

METADATA_KEY_DATE

static val METADATA_KEY_DATE: String

The date the media was created or published. The format is unspecified but RFC 3339 is recommended.

Value: "android.media.metadata.DATE"

METADATA_KEY_DISC_NUMBER

static val METADATA_KEY_DISC_NUMBER: String

The disc number for the media's original source.

Value: "android.media.metadata.DISC_NUMBER"

METADATA_KEY_DISPLAY_DESCRIPTION

static val METADATA_KEY_DISPLAY_DESCRIPTION: String

A description that is suitable for display to the user. When displaying more information for media described by this metadata this should be preferred to other fields if present.

Value: "android.media.metadata.DISPLAY_DESCRIPTION"

METADATA_KEY_DISPLAY_ICON

static val METADATA_KEY_DISPLAY_ICON: String

An icon or thumbnail that is suitable for display to the user. When displaying an icon for media described by this metadata this should be preferred to other fields if present. This must be a Bitmap. The icon should be relatively small and may be scaled down if it is too large. For higher resolution artwork METADATA_KEY_DISPLAY_ICON_URI should be used instead.

Value: "android.media.metadata.DISPLAY_ICON"

METADATA_KEY_DISPLAY_ICON_URI

static val METADATA_KEY_DISPLAY_ICON_URI: