class PDFService
Coordinates fetching and downloading PDF files from a url. Use PDFService.startService to begin coroutines will fetch, and then download each PDF.
<init> |
Coordinates fetching and downloading PDF files from a url. Use PDFService.startService to begin coroutines will fetch, and then download each PDF. PDFService() |
isActive |
Whether the current coroutine is running val isActive: Boolean |
startService |
Starts fetching and downloading PDFs. Utilises coroutines to run networking on a separate threads to UI. fun startService(parentFolder: String, url: String, inFragment: PDFListFragment, doFolders: Boolean): Unit |