Ready

data class Ready(val id: String, val title: String, val subtitle: String = "", val clientPackageName: String? = null, val artwork: Paintable? = null, val artworkColor: Color? = null, val artworkColorSeed: Color? = null, val titleIcon: Paintable? = null, val appLabel: String? = null, val selectedAudioOutput: AudioOutput? = null) : MediaUiModel

Represents the UI state when media data is available.

Parameters

id

The unique identifier of the media item.

title

The title of the media item.

subtitle

The subtitle of the media item (optional).

artwork

The artwork to display for the media item (optional).

artworkColor

The primary color to use for the artwork background (optional).

artworkColorSeed

The seed color to use for generating the artwork color palette (optional).

titleIcon

An icon to display next to the title (optional).

appLabel

The name of the app that is playing media.

selectedAudioOutput

The audio output on which the media is currently playing (optional).

Constructors

Link copied to clipboard
constructor(id: String, title: String, subtitle: String = "", clientPackageName: String? = null, artwork: Paintable? = null, artworkColor: Color? = null, artworkColorSeed: Color? = null, titleIcon: Paintable? = null, appLabel: String? = null, selectedAudioOutput: AudioOutput? = null)

Properties

Link copied to clipboard
val appLabel: String? = null
Link copied to clipboard
val artwork: Paintable? = null
Link copied to clipboard
val artworkColor: Color? = null
Link copied to clipboard
val artworkColorSeed: Color? = null
Link copied to clipboard
Link copied to clipboard
val id: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val titleIcon: Paintable? = null