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_ALBUM
iOS Equivalent:
MPMediaItemPropertyAlbumTitle
Type:
string
Usage:
AlbumArtist
Description: The album artist of the media item.
Android Equivalent:
METADATA_KEY_ALBUM_ARTIST
iOS Equivalent:
MPMediaItemPropertyAlbumArtist
Type:
string
Usage:
Title
Description: The title of the media item.
Android Equivalent:
METADATA_KEY_TITLE
iOS Equivalent:
MPMediaItemPropertyTitle
Type:
string
Usage:
Artwork
Description: The artwork associated with the media item.
Android Equivalent:
METADATA_KEY_ART
iOS Equivalent:
MPMediaItemPropertyArtwork
Type:
Artwork
Usage:
Artist
Description: The artist of the media item.
Android Equivalent:
METADATA_KEY_ARTIST
iOS Equivalent:
MPMediaItemPropertyArtist
Type:
string
Usage:
Genre
Description: The genre of the media item.
Android Equivalent:
METADATA_KEY_GENRE
iOS Equivalent:
MPMediaItemPropertyGenre
Type:
string
Usage:
ReleaseDate
Description: The release date of the media item.
Android Equivalent:
METADATA_KEY_DATE
iOS Equivalent:
MPMediaItemPropertyReleaseDate
Type:
string
Usage:
Example Usage
Here's an example of how you might use the MediaMetadata
class in your application:
Last updated