FileDownloader

class FileDownloader @Inject constructor(    context: Context,     productsAPI: ProductsAPI,     dispatchers: CoroutineDispatchers)

File Downloader class which is used to download a file and write response to the disk.

Constructors

Link copied to clipboard
@Inject
fun FileDownloader(    context: Context,     productsAPI: ProductsAPI,     dispatchers: CoroutineDispatchers)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
suspend fun download(fileUrl: String): Uri?

Downloads a file from the given fileUrl and stores it on disk.