IviMediaItem
A basic data structure used to communicate information about an element in the media domain. This element can represent different types of items, from a song to an album to a dashboard representing the content of a media source.
Media items are created by their media source. The source determines which metadata is available.
Constructed using the IviMediaItemBuilder.
The isBrowsable and isPlayable state of a MediaItem determines its role. For example, in a media browsing UI, a browsable IviMediaItem can usually be clicked to see its contents; songs are just playable IviMediaItems, while albums and playlists are both playable and browsable. Normally, at least one of those two flags should be set.
Parameters
The identification of this media item. This value is specific to the source providing the content. This should be a persistent key for the underlying content. If a source did not provide any identification, it contains an empty string.
Whether it's possible to browse the children of this media item.
Whether it's possible to play this media item.
Contains the metadata of this media item, like the artist or the media art URI. All values are optional.
Properties
The hint for the style of a browsable media item, if specified; null
otherwise.
The media compilation name. Is null
if it has no set compilation.
The description of a media item. Is null
if it has no set description.
The hint for the group title of a media item. Is null
if it has no set group title hint.
The media item art Uri, prioritized for usage as an icon. Will fall back to larger sized artwork when no low resolution property found.
Whether this media item is marked as containing explicit content.
The hint for the style of a playable media item, if specified; null
otherwise.
The rating assigned to this media item.
Inherited functions
Converts an IviMediaItem to a MediaBrowserCompat.MediaItem.
Converts an IviMediaItem to a MediaMetadataCompat.