Category

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.

If feed is not null, clicking on this will load a separate page for loading the Feed. If feed is null, the category will act as a header.

Constructors

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

Properties

Link copied to clipboard
val backgroundColor: String? = null

the background color in hex. (#RRGGBB & #AARRGGBB)

Link copied to clipboard
open override val extras: Map<String, String>

additional information about the category.

Link copied to clipboard
val feed: Feed<Shelf>? = null

the items of the category.

Link copied to clipboard
open override val id: String

the unique identifier of the category.

Link copied to clipboard
val image: ImageHolder? = null

the image of the category.

Link copied to clipboard
val subtitle: String? = null

the subtitle of the category.

Link copied to clipboard
open override val title: String

the title of the category.