media
/
com.google.android.horologist.media.repository
/
PlaylistRepository
Playlist
Repository
interface
PlaylistRepository
Content copied to clipboard
A repository of
Playlist
.
Functions
Functions
get
Link copied to clipboard
abstract suspend fun
get
(playlistId:
String
):
Playlist
?
Content copied to clipboard
Returns the
playlist
with the supplied
id
, if there is any.
getAll
Link copied to clipboard
abstract fun
getAll
():
Flow
<
List
<
Playlist
>>
Content copied to clipboard
Returns all
playlists
available.
getAllDownloaded
Link copied to clipboard
abstract fun
getAllDownloaded
():
Flow
<
List
<
Playlist
>>
Content copied to clipboard
Returns only
playlists
that contain at least one
media
with download in progress or completed.