PlaylistEditCoverClient

Used to allow editing the cover of a playlist.

See also

Functions

Link copied to clipboard
abstract suspend fun addTracksToPlaylist(playlist: Playlist, tracks: List<Track>, index: Int, new: List<Track>)

Adds tracks to a playlist.

Link copied to clipboard
abstract suspend fun createPlaylist(title: String, description: String?): Playlist

Creates a new playlist.

Link copied to clipboard
abstract suspend fun deletePlaylist(playlist: Playlist)

Deletes a playlist.

Link copied to clipboard
abstract suspend fun editPlaylistCover(playlist: Playlist, cover: File?)

Edit the cover of a playlist.

Link copied to clipboard
abstract suspend fun editPlaylistMetadata(playlist: Playlist, title: String, description: String?)

Edits the metadata of a playlist.

Link copied to clipboard
abstract suspend fun listEditablePlaylists(track: Track?): List<<Error class: unknown class><Playlist, Boolean>>

Lists all the editable playlists.

Link copied to clipboard
abstract suspend fun loadFeed(playlist: Playlist): Feed<Shelf>?

Gets the feed of a playlist.

Link copied to clipboard
abstract suspend fun loadPlaylist(playlist: Playlist): Playlist

Loads a playlist.

Link copied to clipboard
abstract suspend fun loadTracks(playlist: Playlist): Feed<Track>

Loads the tracks of a playlist.

Link copied to clipboard
abstract suspend fun moveTrackInPlaylist(playlist: Playlist, tracks: List<Track>, fromIndex: Int, toIndex: Int)

Moves a track in a playlist.

Link copied to clipboard
abstract suspend fun removeTracksFromPlaylist(playlist: Playlist, tracks: List<Track>, indexes: List<Int>)

Removes tracks from a playlist.