Playable

@Serializable(with = PlayableSerializer::class)
interface Playable(source)

A local track, episode, or track. Serialized with PlayableSerializer

Inheritors

Properties

Link copied to clipboard

This Playable as a local track, or else null if it is an episode or track.

Link copied to clipboard

This Playable as an episode (podcast), or else null if it is a local track or track.

Link copied to clipboard
open val asTrack: Track?

This Playable as a track, or else null if it is a local track or episode (podcast).

Link copied to clipboard
abstract val href: String?

A link to the Web API endpoint providing full details of the playable.

Link copied to clipboard
abstract val id: String?

The Spotify ID for the playable.

Link copied to clipboard
abstract val type: String

The type of the playable.

Link copied to clipboard
abstract val uri: PlayableUri

The URI associated with the object.