MediaDownloadDao

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class StatusAndProgress(val mediaId: String, val status: MediaDownloadEntityStatus, val progress: Float)

Functions

Link copied to clipboard
abstract suspend fun delete(mediaId: String)
abstract suspend fun delete(mediaIds: List<String>)
Link copied to clipboard
Link copied to clipboard
abstract fun getList(mediaIds: List<String>): Flow<List<MediaDownloadEntity>>
Link copied to clipboard
abstract suspend fun insert(mediaDownloadEntity: MediaDownloadEntity): Long
Link copied to clipboard
abstract suspend fun updateProgress(mediaId: String, progress: Float, size: Long)
Link copied to clipboard
abstract suspend fun updateStatus(mediaId: String, status: MediaDownloadEntityStatus)
Link copied to clipboard
abstract suspend fun updateStatusAndProgress(statusAndProgress: MediaDownloadDao.StatusAndProgress)