Radio

data class Radio(val id: String, val title: String, val cover: ImageHolder? = null, val authors: List<Artist> = listOf(), val trackCount: Long? = null, val description: String? = null, val subtitle: String? = null, val extras: Map<String, String> = mapOf(), val isFollowable: Boolean = false, val isSaveable: Boolean = false, val isLikeable: Boolean = false, val isHideable: Boolean = false, val isShareable: Boolean = true) : EchoMediaItem.Lists

A data class representing a radio, that can load tracks and be directly played when clicked.

Constructors

Link copied to clipboard
constructor(id: String, title: String, cover: ImageHolder? = null, authors: List<Artist> = listOf(), trackCount: Long? = null, description: String? = null, subtitle: String? = null, extras: Map<String, String> = mapOf(), isFollowable: Boolean = false, isSaveable: Boolean = false, isLikeable: Boolean = false, isHideable: Boolean = false, isShareable: Boolean = true)

Properties

Link copied to clipboard
open override val artists: List<Artist>
Link copied to clipboard

The authors of the radio

Link copied to clipboard
open override val background: ImageHolder? = null

The background image of the media item, used to display a background image

Link copied to clipboard
open override val cover: ImageHolder? = null

The cover image of the radio

Link copied to clipboard
open val date: Date?
Link copied to clipboard
open override val description: String? = null

A description of the media item, used to display additional information

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

Any extra data you want to associate with the radio

Link copied to clipboard
open override val id: String

The id of the radio

Link copied to clipboard
Link copied to clipboard
open override val isFollowable: Boolean = false

Whether the radio can be followed. Checkout FollowClient

Link copied to clipboard
open override val isHideable: Boolean = false

Whether the radio can be hidden. Checkout HideClient

Link copied to clipboard
open override val isLikeable: Boolean = false

Whether the radio can be liked. Checkout LikeClient

Link copied to clipboard
open val isPrivate: Boolean
Link copied to clipboard
open override val isRadioSupported: Boolean = false

Whether the media item can be loaded to get Radio. Checkout RadioClient

Link copied to clipboard
open override val isSaveable: Boolean = false

Whether the radio can be saved to library. Checkout SaveClient

Link copied to clipboard
open override val isShareable: Boolean = true

Whether the radio can be shared. Checkout ShareClient

Link copied to clipboard
open val label: String?
Link copied to clipboard
open override val subtitle: String? = null

The subtitle of the radio, used to display information under the title

Link copied to clipboard
open val subtitleWithE: <Error class: unknown class>
Link copied to clipboard
open override val subtitleWithOutE: String
Link copied to clipboard
open override val title: String

The title of the radio

Link copied to clipboard
open override val trackCount: Long? = null

The number of tracks in the radio, if applicable

Link copied to clipboard
open val type: Album.Type?

Functions

Link copied to clipboard
open fun copyMediaItem(id: String = this.id, title: String = this.title, cover: ImageHolder? = this.cover, description: String? = this.description, subtitle: String? = this.subtitle, extras: Map<String, String> = this.extras, isRadioSupported: Boolean = this.isRadioSupported, isFollowable: Boolean = this.isFollowable, isSaveable: Boolean = this.isSaveable): EchoMediaItem
Link copied to clipboard
open fun sameAs(other: EchoMediaItem): Boolean
Link copied to clipboard
open fun toShelf(): Shelf.Item