on Prepare Long Press Popup Toolbar
open fun onPrepareLongPressPopupToolbar(@NonNull toolbar: PopupToolbar, @IntRange(from = 0 ) pageIndex: Int, @NonNull pdfPoint: PointF)
Called once the long-press popup toolbar is being prepared to be displayed. This toolbar appears when the user long-presses on an empty area of the document (outside of text selection or annotation selection).
Parameters
toolbar
Toolbar that's about to be displayed.
page Index
Index of the page where the long-press occurred.
pdf Point
The point where the long-press occurred, in PDF coordinates.