PlaylistRepository

A repository of Playlist.

Functions

Link copied to clipboard
abstract suspend fun get(playlistId: String): Playlist?

Returns the playlist with the supplied id, if there is any.

Link copied to clipboard
abstract fun getAll(): Flow<List<Playlist>>

Returns all playlists available.

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.