MediaEntryGroupItem
class MediaEntryGroupItem( item: IviMediaItem, itemState: LiveData<MediaEntryGroupItem.ItemState>, val type: ListGroupItem.ItemType, clickAction: ClickAction) : MediaGroupItem
Content copied to clipboard
A MediaGroupItem 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
item
The media item.
itemState
ItemState of this 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
fun MediaEntryGroupItem( item: IviMediaItem, itemState: LiveData<MediaEntryGroupItem.ItemState>, type: ListGroupItem.ItemType, clickAction: ClickAction)
Content copied to clipboard
Types
Properties
Link copied to clipboard
Uri of the image representing this item. null
if no image is specified.
Link copied to clipboard
Duration of the track. Duration.ZERO when not available and never negative.
Link copied to clipboard