AndroidDownloadableModelFileDownloader

Coordinates AndroidDownloadableModelFileDownloader behavior in the SDAI data layer.

Author

Dmitriy Moroz

Throws

when the delegated operation cannot complete.

Constructors

Link copied to clipboard
constructor(fileProviderDescriptor: FileProviderDescriptor)

Types

Link copied to clipboard
private object Companion

Provides the companion object singleton used by the SDAI data layer.

Properties

Link copied to clipboard

Exposes the fileProviderDescriptor value used by the SDAI data layer.

Link copied to clipboard
private val httpClient: OkHttpClient

Exposes the httpClient value used by the SDAI data layer.

Functions

Link copied to clipboard
open override fun download(id: String, url: String): Flow<DownloadState>

Executes the download step in the SDAI data layer.

Link copied to clipboard
private suspend fun downloadToFile(url: String, destination: File, onProgress: suspend (Int) -> Unit): File

Executes the downloadToFile step in the SDAI data layer.

Link copied to clipboard
private fun getDestinationPath(id: String): String

Loads SDAI data through getDestinationPath.