MediaContentEntryItemViewModel
class MediaContentEntryItemViewModel(val mediaItem: IviMediaItem, val itemState: IviPlaybackState, val type: ListGroupItem.ItemType, clickAction: ClickAction) : MediaContentItemViewModel
A MediaContentItemViewModel holds the information about an IviMediaItem.
Presentation of the item depends on the given hints, and results in a ListGroupItem showing the item in a list or a grid.
Parameters
mediaItem
The media item. Used to determine the playback state.
itemState
The playback state of the item.
type
May only be ItemType.GRID_ITEM or ItemType.LIST_ITEM.
clickAction
Action to perform when the item gets clicked or tapped by the user.
Constructors
Link copied to clipboard
constructor(mediaItem: IviMediaItem, itemState: IviPlaybackState, type: ListGroupItem.ItemType, clickAction: ClickAction)
Properties
Link copied to clipboard
Displayable label, showing the duration of the track in hours:minutes:seconds
. Empty if the duration is not available.
Link copied to clipboard
Whether this item should show its state drawable.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Drawable, indicating the playback state of the item.