Android Guides | Samples

Android.Media.MediaMetadata Class

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

See Also: MediaMetadata

Syntax

[Android.Runtime.Register("android/media/MediaMetadata", DoNotGenerateAcw=true)]
public sealed class MediaMetadata : Object, IParcelable, IDisposable

Remarks

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

[Android Documentation]

Requirements

Namespace: Android.Media
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0

The members of Android.Media.MediaMetadata are listed below.

See Also: Object

Public Fields

const
MetadataKeyAlbumString. The album title for the media.
const
MetadataKeyAlbumArtString. The artwork for the album of the media's original source as a Bitmap.
const
MetadataKeyAlbumArtistString. The artist for the album of the media's original source.
const
MetadataKeyAlbumArtUriString. The artwork for the album of the media's original source as a Uri formatted String.
const
MetadataKeyArtString. The artwork for the media as a Bitmap.
const
MetadataKeyArtistString. The artist of the media.
const
MetadataKeyArtUriString. The artwork for the media as a Uri formatted String.
const
MetadataKeyAuthorString. The author of the media.
const
MetadataKeyCompilationString. The compilation status of the media.
const
MetadataKeyComposerString. The composer of the media.
const
MetadataKeyDateString. The date the media was created or published.
const
MetadataKeyDiscNumberString. The disc number for the media's original source.
const
MetadataKeyDisplayDescriptionString. A description that is suitable for display to the user.
const
MetadataKeyDisplayIconString. An icon or thumbnail that is suitable for display to the user.
const
MetadataKeyDisplayIconUriString. A Uri formatted String for an icon or thumbnail that is suitable for display to the user.
const
MetadataKeyDisplaySubtitleString. A subtitle that is suitable for display to the user.
const
MetadataKeyDisplayTitleString. A title that is suitable for display to the user.
const
MetadataKeyDurationString. The duration of the media in ms.
const
MetadataKeyGenreString. The genre of the media.
const
MetadataKeyMediaIdString. A String key for identifying the content.
const
MetadataKeyNumTracksString. The number of tracks in the media's original source.
const
MetadataKeyRatingString. The overall rating for the media.
const
MetadataKeyTitleString. The title of the media.
const
MetadataKeyTrackNumberString. The track number for the media.
const
MetadataKeyUserRatingString. The user's rating for the media.
const
MetadataKeyWriterString. The writer of the media.
const
MetadataKeyYearString. The year the media was created or published as a long.

Public Properties

[read-only]
static
CreatorIParcelableCreator.
[read-only]
DescriptionMediaDescription. Returns a simple description of this metadata for display purposes.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

ContainsKey(String) : Boolean
Returns true if the given key is contained in the metadata
DescribeContents() : Int32
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
GetBitmap(String) : Bitmap
Returns a Bitmap for the given key or null if no bitmap exists for the given key.
GetLong(String) : Int64
Returns the value associated with the given key, or 0L if no long exists for the given key.
GetRating(String) : Rating
Returns a Rating for the given key or null if no rating exists for the given key.
GetString(String) : String
Returns the text value associated with the given key as a String, or null if no mapping of the desired type exists for the given key or a null value is explicitly associated with the key.
GetText(String) : String
GetTextFormatted(String) : ICharSequence
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.
KeySet() : ICollection<string>
Returns a Set containing the Strings used as keys in this metadata.
Size() : Int32
Returns the number of fields in this metadata.
WriteToParcel(Parcel, ParcelableWriteFlags)
Flatten this object in to a Parcel.