PdfUiFragment

This fragment provides the same UI as PdfActivity. It can be used inside any view hierarchy but use is limited to one instance per Activity, unless pdfFragmentTag is used to set a unique fragment tag for each instance.

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open val implementation: PdfUiImpl
The current implementation of the PDF UI.

Functions

Link copied to clipboard
Returns the PdfActivityConfiguration that was provided while launching this pdf UI.
Link copied to clipboard
open fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent)
Link copied to clipboard
Call this from your activity to properly close the UI when pressing back.
Link copied to clipboard
Called when a device configuration change occurs while the fragment is running.
Link copied to clipboard
open fun onCreateOptionsMenu(@NonNull menu: Menu, @NonNull inflater: MenuInflater)
Link copied to clipboard
open fun onCreateView(@NonNull inflater: LayoutInflater, @Nullable container: ViewGroup, @Nullable savedInstanceState: Bundle): View
Called to create and return the view hierarchy for this fragment.
Link copied to clipboard
open fun onDestroy()
Called when the fragment is being destroyed.
Link copied to clipboard
Called when generating menu item IDs for the PDF UI toolbar.
Link copied to clipboard
open fun onGetShowAsAction(menuItemId: Int, defaultShowAsAction: Int): Int
Called to determine how a menu item should be displayed in the action bar.
Link copied to clipboard
Link copied to clipboard
open fun onPause()
Called when the fragment is pausing.
Link copied to clipboard
Link copied to clipboard
open fun onResume()
Called when the fragment is visible and actively running.
Link copied to clipboard
open fun onSaveInstanceState(@NonNull outState: Bundle)
Called to save instance state before the fragment is destroyed.
Link copied to clipboard
Called when activity title must be set - before and after document was loaded.
Link copied to clipboard
open fun onStart()
Called when the fragment becomes visible to the user.
Link copied to clipboard
open fun onStop()
Called when the fragment is no longer visible.
Link copied to clipboard
Called when user interface visibility have changed.
Link copied to clipboard
Replaces activity configuration.