app / com.otago.open / PDFViewFragment

PDFViewFragment

class PDFViewFragment : Fragment

A Fragment to view PDFs. Based on https://github.com/barteksc/AndroidPdfViewer

Types

TempService

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

object TempService

Constructors

<init>

A Fragment to view PDFs. Based on https://github.com/barteksc/AndroidPdfViewer

PDFViewFragment()

Functions

onCreateView

Entry point of PDFViewFragment

fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View?

onSaveInstanceState

Handles saving the instance state of this fragment e.g. when rotating the screen

fun onSaveInstanceState(outState: Bundle): Unit

onViewCreated

Handles the creation of the views. Displays the PDF

fun onViewCreated(view: View, savedInstanceState: Bundle?): Unit