Shelf

sealed interface Shelf

Represents a shelf (group of Media Items or Categories) in the app feed.

This can be Lists shelf, an Item shelf or a Category shelf.

See also

Inheritors

Types

Link copied to clipboard
data class Category(val id: String, val title: String, val feed: Feed<Shelf>? = null, val subtitle: String? = null, val image: ImageHolder? = null, val backgroundColor: String? = null, val extras: Map<String, String> = mapOf()) : Shelf

Represents a category of media items.

Link copied to clipboard
data class Item(val media: EchoMediaItem) : Shelf

Represents a media item.

Link copied to clipboard
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.

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 title: String