PdfTextSelectionPopupToolbar

Text selection implementation of the PopupToolbar. It will show right above the selected text if the toolbar has been successfully bound with a respective TextSelectionController.

Constructors

Link copied to clipboard
constructor(@NonNull pdfFragment: PdfFragment)
Creates a new text selection popup toolbar that will be displayed in the specified fragment.

Properties

Link copied to clipboard
Controller bound to this text selection popup toolbar (if any).

Functions

Link copied to clipboard
open fun bindController(@NonNull textSelectionController: TextSelectionController)
Bind text selection controller to the toolbar.
Link copied to clipboard
open fun dismiss()
Hides/dismisses the popup toolbar.
Link copied to clipboard
open fun getViewId(): Int
Returns the id of the content view for this toolbar.
Link copied to clipboard
open fun onItemClicked(@NonNull popupToolbarMenuItem: PopupToolbarMenuItem): Boolean
Called when the menu item has been clicked.
Link copied to clipboard
Displays the text selection toolbar over the selected text.
Link copied to clipboard
open fun unbindController()
Unbinds a currently bound controller (if any).