MediaMetadata Class

Definition

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

[Android.Runtime.Register("android/media/MediaMetadata", DoNotGenerateAcw=true)]
public sealed class MediaMetadata : Java.Lang.Object, Android.OS.IParcelable, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("android/media/MediaMetadata", DoNotGenerateAcw=true)>]
type MediaMetadata = class
    inherit Object
    interface IParcelable
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
Inheritance
MediaMetadata
Attributes
Implements

Remarks

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

Java documentation for android.media.MediaMetadata.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Fields

MetadataKeyAlbum

The album title for the media.

MetadataKeyAlbumArt

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

MetadataKeyAlbumArtist

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

MetadataKeyAlbumArtUri

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

MetadataKeyArt

The artwork for the media as a Bitmap.

MetadataKeyArtist

The artist of the media.

MetadataKeyArtUri

The artwork for the media as a Uri formatted String.

MetadataKeyAuthor

The author of the media.

MetadataKeyBtFolderType

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

MetadataKeyCompilation

The compilation status of the media.

MetadataKeyComposer

The composer of the media.

MetadataKeyDate

The date the media was created or published.

MetadataKeyDiscNumber

The disc number for the media's original source.

MetadataKeyDisplayDescription

A description that is suitable for display to the user.

MetadataKeyDisplayIcon

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

MetadataKeyDisplayIconUri

A Uri formatted String for an icon or thumbnail that is suitable for display to the user.

MetadataKeyDisplaySubtitle

A subtitle that is suitable for display to the user.

MetadataKeyDisplayTitle

A title that is suitable for display to the user.

MetadataKeyDuration

The duration of the media in ms.

MetadataKeyGenre

The genre of the media.

MetadataKeyMediaId

A String key for identifying the content.

MetadataKeyMediaUri

A Uri formatted String representing the content.

MetadataKeyNumTracks

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

MetadataKeyRating

The overall rating for the media.

MetadataKeyTitle

The title of the media.

MetadataKeyTrackNumber

The track number for the media.

MetadataKeyUserRating

The user's rating for the media.

MetadataKeyWriter

The writer of the media.

MetadataKeyYear

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

Properties

BitmapDimensionLimit

Gets the width/height limit (in pixels) for the bitmaps when this metadata was created.

Class

Returns the runtime class of this Object.

(Inherited from Object)
Creator
Description

Returns a simple description of this metadata for display purposes.

Handle

The handle to the underlying Android instance.

(Inherited from Object)
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
PeerReference (Inherited from Object)
ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)
ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)

Methods

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
ContainsKey(String)

Returns true if the given key is contained in the metadata

DescribeContents()

Describe the kinds of special objects contained in this Parcelable's marshalled representation.

Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetBitmap(String)

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

GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
GetLong(String)

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

GetRating(String)

Returns a Rating for the given key or null if no rating exists for the given key.

GetString(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)

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.

GetTextFormatted(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.

JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
KeySet()

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

Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
Size()

Returns the number of fields in this metadata.

ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
WriteToParcel(Parcel, ParcelableWriteFlags)

Flatten this object in to a Parcel.

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to