MediaContentHeaderItemViewModel

class MediaContentHeaderItemViewModel(val title: String) : MediaContentItemViewModel

A MediaContentItemViewModel that represents a header.

A header contains only a user-facing title and is used to group media items together; for example: "Recently played radio stations".

Constructors

Link copied to clipboard
fun MediaContentHeaderItemViewModel(title: String)

Properties

Link copied to clipboard
open override val title: String

User-facing display title of the item.

Link copied to clipboard
open override val type: ListGroupItem.ItemType

ItemType of this item. Must be ItemType.HEADER.

Functions

Link copied to clipboard
open override fun onClick()

Header items do nothing on click.

Inherited functions

Link copied to clipboard
open fun isGroupMember(): Boolean
Link copied to clipboard
open fun isHeader(): Boolean