onPrepareLongPressPopupToolbar

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.

pageIndex

Index of the page where the long-press occurred.

pdfPoint

The point where the long-press occurred, in PDF coordinates.