DownloadManager

interface DownloadManager

Properties

Link copied to clipboard
abstract val stateFlow: StateFlow<DownloadStatus>

Functions

Link copied to clipboard
Link copied to clipboard
abstract suspend fun cancelDownload(taskId: Long)
Link copied to clipboard
abstract suspend fun download(uri: String, fileUri: Uri, isContinue: Boolean = false, withAuth: Boolean = true): Flow<DownloadState>
abstract suspend fun download(uri: String, folderUri: Uri, fileName: String, isContinue: Boolean = false, withAuth: Boolean = true): Flow<DownloadState>
Link copied to clipboard
abstract fun enqueueDocumentToDownload(documentId: Long, documentSize: String, cacheMode: CacheMode?, priority: DownloadPriority, copierKey: String, downloadLink: String, meta: String, fileName: String, uri: String?)
Link copied to clipboard
abstract fun enqueueFileNodeToDownload(fileNodeId: String, priority: DownloadPriority, cacheMode: CacheMode?, downloadLink: String, uri: String?)
Link copied to clipboard
abstract fun enqueueMediaToDownload(mediaId: Long, priority: DownloadPriority, cacheMode: CacheMode?, downloadLink: String, fileName: String, uri: String?)
Link copied to clipboard