app / com.otago.open / PDFListFragment / PDFService

PDFService

class PDFService

Coordinates fetching and downloading PDF files from a url. Use PDFService.startService to begin coroutines will fetch, and then download each PDF.

Constructors

<init>

Coordinates fetching and downloading PDF files from a url. Use PDFService.startService to begin coroutines will fetch, and then download each PDF.

PDFService()

Properties

isActive

Whether the current coroutine is running

val isActive: Boolean

Functions

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