MediaDownloadLocalDataSource

Local data source of MediaDownload.

Constructors

Link copied to clipboard
constructor(mediaDownloadDao: MediaDownloadDao)

Functions

Link copied to clipboard
suspend fun add(mediaId: String)
Link copied to clipboard
suspend fun delete(mediaId: String)
Link copied to clipboard
fun get(mediaIds: List<String>): Flow<List<MediaDownloadEntity>>
Link copied to clipboard
Link copied to clipboard
suspend fun setDownloaded(mediaId: String)
Link copied to clipboard
suspend fun updateProgress(mediaId: String, progress: Float, size: Long)
Link copied to clipboard
suspend fun updateStatus(mediaId: String, status: MediaDownloadEntityStatus)