app / com.otago.open / PDFViewFragment / TempService

TempService

object TempService

Coroutine to download a PDF file (or any other file) to a temporary directory if it hasn't been downloaded yet

This can safely be an object since this represents the end of any navigation

Functions

startService

Starts the file download

fun startService(url: String, parentFolder: String, fileName: String, inFragment: PDFViewFragment, pdfView: PDFView): Unit