PlaylistRepository

interface PlaylistRepository

A repository of Playlist.

Functions

get
Link copied to clipboard
abstract suspend fun get(playlistId: String): Playlist?
Returns the playlist with the supplied id, if there is any.
getAll
Link copied to clipboard
abstract fun getAll(): Flow<List<Playlist>>
Returns all playlists available.
getAllDownloaded
Link copied to clipboard
abstract fun getAllDownloaded(): Flow<List<Playlist>>
Returns only playlists that contain at least one media with download in progress or completed.