MediaMetadata MediaMetadata Class

Definition

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

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

Remarks

Android platform documentation

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 MetadataKeyAlbum

The album title for the media.

MetadataKeyAlbumArt MetadataKeyAlbumArt

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

MetadataKeyAlbumArtist MetadataKeyAlbumArtist

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

MetadataKeyAlbumArtUri MetadataKeyAlbumArtUri

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

MetadataKeyArt MetadataKeyArt

The artwork for the media as a Bitmap.

MetadataKeyArtist MetadataKeyArtist

The artist of the media.

MetadataKeyArtUri MetadataKeyArtUri

The artwork for the media as a Uri formatted String.

MetadataKeyAuthor MetadataKeyAuthor

The author of the media.

MetadataKeyBtFolderType MetadataKeyBtFolderType
MetadataKeyCompilation MetadataKeyCompilation

The compilation status of the media.

MetadataKeyComposer MetadataKeyComposer

The composer of the media.

MetadataKeyDate MetadataKeyDate

The date the media was created or published.

MetadataKeyDiscNumber MetadataKeyDiscNumber

The disc number for the media's original source.

MetadataKeyDisplayDescription MetadataKeyDisplayDescription

A description that is suitable for display to the user.

MetadataKeyDisplayIcon MetadataKeyDisplayIcon

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

MetadataKeyDisplayIconUri MetadataKeyDisplayIconUri

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

MetadataKeyDisplaySubtitle MetadataKeyDisplaySubtitle

A subtitle that is suitable for display to the user.

MetadataKeyDisplayTitle MetadataKeyDisplayTitle

A title that is suitable for display to the user.

MetadataKeyDuration MetadataKeyDuration

The duration of the media in ms.

MetadataKeyGenre MetadataKeyGenre

The genre of the media.

MetadataKeyMediaId MetadataKeyMediaId

A String key for identifying the content.

MetadataKeyMediaUri MetadataKeyMediaUri
MetadataKeyNumTracks MetadataKeyNumTracks

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

MetadataKeyRating MetadataKeyRating

The overall rating for the media.

MetadataKeyTitle MetadataKeyTitle

The title of the media.

MetadataKeyTrackNumber MetadataKeyTrackNumber

The track number for the media.

MetadataKeyUserRating MetadataKeyUserRating

The user's rating for the media.

MetadataKeyWriter MetadataKeyWriter

The writer of the media.

MetadataKeyYear MetadataKeyYear

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

Properties

Class Class

Returns the unique instance of Class that represents this object's class.

(Inherited from Object)
Creator Creator
Description Description

Returns a simple description of this metadata for display purposes.

Handle Handle

The handle to the underlying Android instance.

(Inherited from Object)
IJavaObjectEx.IsProxy IJavaObjectEx.IsProxy Inherited from Object
IJavaObjectEx.KeyHandle IJavaObjectEx.KeyHandle Inherited from Object
IJavaObjectEx.NeedsActivation IJavaObjectEx.NeedsActivation Inherited from Object
IJavaPeerable.JniManagedPeerState IJavaPeerable.JniManagedPeerState Inherited from Object
JniIdentityHashCode JniIdentityHashCode Inherited from Object
JniPeerMembers JniPeerMembers
PeerReference PeerReference Inherited from Object
ThresholdClass ThresholdClass

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

(Inherited from Object)
ThresholdType 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() Clone()

Creates and returns a copy of this Object.

(Inherited from Object)
ContainsKey(String) ContainsKey(String)

Returns true if the given key is contained in the metadata

DescribeContents() DescribeContents()

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

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

Compares this instance with the specified object and indicates if they are equal.

(Inherited from Object)
GetBitmap(String) GetBitmap(String)

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

GetHashCode() GetHashCode()

Returns an integer hash code for this object.

(Inherited from Object)
GetLong(String) GetLong(String)

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

GetRating(String) GetRating(String)

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

GetString(String) 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) GetText(String)
GetTextFormatted(String) 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() JavaFinalize()

Invoked when the garbage collector has detected that this instance is no longer reachable.

(Inherited from Object)
KeySet() KeySet()

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

Notify() Notify()

Causes a thread which is waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
NotifyAll() NotifyAll()

Causes all threads which are waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
SetHandle(IntPtr, JniHandleOwnership) SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
Size() Size()

Returns the number of fields in this metadata.

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

Returns a string containing a concise, human-readable description of this object.

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

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.

(Inherited from Object)
Wait(Int64) Wait(Int64)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)
Wait(Int64, Int32) Wait(Int64, Int32)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)
WriteToParcel(Parcel, ParcelableWriteFlags) WriteToParcel(Parcel, ParcelableWriteFlags)

Flatten this object in to a Parcel.

Explicit Interface Implementations

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

Extension Methods

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable) GetJniTypeName(IJavaPeerable)

Applies to