MediaMetadata
The MediaMetadata class represents the metadata associated with a media item, including information such as the album, artist, title, artwork, genre, and release date. This class maps the metadata properties from both Android and iOS platforms to a unified representation.
Properties
Album
Description: The album title of the media item.
Android Equivalent:
METADATA_KEY_ALBUMiOS Equivalent:
MPMediaItemPropertyAlbumTitleType:
stringUsage:
string album = metadata.Album; metadata.Album = "New Album Title";
AlbumArtist
Description: The album artist of the media item.
Android Equivalent:
METADATA_KEY_ALBUM_ARTISTiOS Equivalent:
MPMediaItemPropertyAlbumArtistType:
stringUsage:
string albumArtist = metadata.AlbumArtist; metadata.AlbumArtist = "New Album Artist";
Title
Description: The title of the media item.
Android Equivalent:
METADATA_KEY_TITLEiOS Equivalent:
MPMediaItemPropertyTitleType:
stringUsage:
Artwork
Description: The artwork associated with the media item.
Android Equivalent:
METADATA_KEY_ARTiOS Equivalent:
MPMediaItemPropertyArtworkType:
ArtworkUsage:
Artist
Description: The artist of the media item.
Android Equivalent:
METADATA_KEY_ARTISTiOS Equivalent:
MPMediaItemPropertyArtistType:
stringUsage:
Genre
Description: The genre of the media item.
Android Equivalent:
METADATA_KEY_GENREiOS Equivalent:
MPMediaItemPropertyGenreType:
stringUsage:
ReleaseDate
Description: The release date of the media item.
Android Equivalent:
METADATA_KEY_DATEiOS Equivalent:
MPMediaItemPropertyReleaseDateType:
stringUsage:
Example Usage
Here's an example of how you might use the MediaMetadata class in your application:
Last updated