Lists

sealed interface Lists<T : Any> : Shelf

Represents a list of media items or categories. If more is not null, a "More" button will be displayed and clicking on it will load a separate page for loading the PagedData.

Can be a list of Items, Tracks or Categories.

See also

Inheritors

Types

Link copied to clipboard
data class Categories(val id: String, val title: String, val list: List<Shelf.Category>, val subtitle: String? = null, val type: Shelf.Lists.Type = Type.Linear, val more: Feed<Shelf>? = null, val extras: Map<String, String> = mapOf()) : Shelf.Lists<Shelf.Category>

Represents a list of Category.

Link copied to clipboard
data class Items(val id: String, val title: String, val list: List<EchoMediaItem>, val subtitle: String? = null, val type: Shelf.Lists.Type = Type.Linear, val more: Feed<Shelf>? = null, val extras: Map<String, String> = mapOf()) : Shelf.Lists<EchoMediaItem>

Represents a list of EchoMediaItem.

Link copied to clipboard
data class Tracks(val id: String, val title: String, val list: List<Track>, val subtitle: String? = null, val type: Shelf.Lists.Type = Type.Linear, val more: Feed<Shelf>? = null, val extras: Map<String, String> = mapOf()) : Shelf.Lists<Track>

Represents a list of Track, these will be numbered, otherwise use Items instead.

Link copied to clipboard

Represents the type of the list.

Properties

Link copied to clipboard
abstract val extras: Map<String, String>
Link copied to clipboard
abstract val id: String
Link copied to clipboard
abstract val list: List<T>

the list of media items or categories.

Link copied to clipboard
abstract val more: Feed<Shelf>?

the more data of the list.

Link copied to clipboard
abstract val subtitle: String?

the subtitle of the list.

Link copied to clipboard
abstract val title: String
Link copied to clipboard
abstract val type: Shelf.Lists.Type

the type of the list.