class PDFListFragment : Fragment
A Fragment that generates each PDFItem to display.
PDFService |
Coordinates fetching and downloading PDF files from a url. Use PDFService.startService to begin coroutines will fetch, and then download each PDF. class PDFService |
<init> |
A Fragment that generates each PDFItem to display. PDFListFragment() |
generateFolderList |
Creates list of PDFItem items from what is present in the current directory (paper folder / sub name) fun generateFolderList(folder: String): List<PDFItem> |
notify |
Sets the adapterItems and marks it as being correct Also updates the UI if it exists fun notify(links: List<PDFItem>?): Unit |
onActivityCreated |
Create the items to display upon starting the fragment. All items are pulled from one directory fun onActivityCreated(savedInstanceState: Bundle?): Unit |
onCreate |
Entry point for creating a PDFListFragment Ensure that the instance is retained on back button press fun onCreate(savedInstanceState: Bundle?): Unit |
onCreateView |
Entry point of the PDFListFragment view. fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? |
onSaveInstanceState |
Event handler for saving the state when the user navigates away or rotates the screen fun onSaveInstanceState(outState: Bundle): Unit |