Package-level declarations

Types

Link copied to clipboard
@Serializable
data class Actions(val disallows: Disallows? = null, val interruptingPlayback: Boolean? = null, val pausing: Boolean? = null, val resuming: Boolean? = null, val seeking: Boolean? = null, val skippingNext: Boolean? = null, val skippingPrev: Boolean? = null, val togglingRepeatContext: Boolean? = null, val togglingShuffle: Boolean? = null, val togglingRepeatTrack: Boolean? = null, val transferringPlayback: Boolean? = null)
Link copied to clipboard
@Serializable
data class AvailableDevices(val devices: List<Device>)
Link copied to clipboard
@Serializable
data class Context(val type: ContextType? = null, val href: String? = null, val externalUrls: ExternalUrls? = null, val uri: String? = null)
Link copied to clipboard
@Serializable
enum ContextType : Enum<ContextType>

Type of playback context returned by the Spotify Player API.

Link copied to clipboard
@Serializable
data class CurrentlyPlayingTrack(val device: Device? = null, val repeatState: RepeatState? = null, val shuffleState: Boolean? = null, val context: Context? = null, val timestamp: Long? = null, val progressMs: Int? = null, val isPlaying: Boolean? = null, val item: PlaybackItem? = null, val currentlyPlayingType: CurrentlyPlayingType? = null, val actions: Actions? = null)
Link copied to clipboard

Type of the currently playing item returned by the Spotify Player API.

Link copied to clipboard
@Serializable
data class Device(val id: String? = null, val isActive: Boolean? = null, val isPrivateSession: Boolean? = null, val isRestricted: Boolean? = null, val name: String? = null, val type: DeviceType? = null, val volumePercent: Int? = null, val supportsVolume: Boolean? = null)
Link copied to clipboard
@Serializable
enum DeviceType : Enum<DeviceType>

Spotify Connect device type.

Link copied to clipboard
@Serializable
data class Disallows(val interruptingPlayback: Boolean? = null, val pausing: Boolean? = null, val resuming: Boolean? = null, val seeking: Boolean? = null, val skippingNext: Boolean? = null, val skippingPrev: Boolean? = null, val togglingRepeatContext: Boolean? = null, val togglingShuffle: Boolean? = null, val togglingRepeatTrack: Boolean? = null, val transferringPlayback: Boolean? = null)
Link copied to clipboard
@Serializable(with = PlaybackItemSerializer::class)
interface PlaybackItem
Link copied to clipboard
object PlaybackItemSerializer : JsonContentPolymorphicSerializer<PlaybackItem>
Link copied to clipboard
@Serializable
data class PlaybackState(val device: Device? = null, val repeatState: RepeatState? = null, val shuffleState: Boolean? = null, val smartShuffle: Boolean? = null, val context: Context? = null, val timestamp: Long? = null, val progressMs: Int? = null, val isPlaying: Boolean? = null, val item: PlaybackItem? = null, val currentlyPlayingType: CurrentlyPlayingType? = null, val actions: Actions? = null)
Link copied to clipboard
@Serializable
data class PlayHistoryObject(val track: Track? = null, val playedAt: String? = null, val context: Context? = null)
Link copied to clipboard
@Serializable
enum RepeatState : Enum<RepeatState>

Spotify repeat state for a playback context.

Link copied to clipboard
data class UnknownPlaybackItem(val raw: JsonObject) : PlaybackItem
Link copied to clipboard
@Serializable
data class UsersQueue(val currentlyPlaying: PlaybackItem? = null, val queue: List<PlaybackItem> = emptyList())