Pdf Ui Fragment
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
Functions
Link copied to clipboard
Returns the PdfActivityConfiguration that was provided while launching this pdf UI.
Link copied to clipboard
Returns the that is used to show the document.
Link copied to clipboard
Rebuilds the toolbar items like invalidateToolbarItems.
Link copied to clipboard
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 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
Link copied to clipboard
Called to save instance state before the fragment is destroyed.
Link copied to clipboard
open fun onSetActivityTitle(@NonNull configuration: PdfActivityConfiguration, @Nullable document: PdfDocument)
Called when activity title must be set - before and after document was loaded.
Link copied to clipboard
Called when user interface visibility have changed.
Link copied to clipboard
Replaces activity configuration.
Link copied to clipboard
Sets the item click listener like setOnToolbarItemClickListener, and can be called before this fragment has a view.
Link copied to clipboard
Sets the navigation click listener like setOnToolbarNavigationClickListener, and can be called before this fragment has a view.
Link copied to clipboard
Sets the items provider like setToolbarItemsProvider, and can be called before this fragment has a view.
Link copied to clipboard
open fun setToolbarNavigationIcon(@Nullable icon: ToolbarIcon, @Nullable contentDescription: String)
Sets the navigation icon like setToolbarNavigationIcon, and can be called before this fragment has a view.