onPrepareContentEditingPopupToolbar

open fun onPrepareContentEditingPopupToolbar(@NonNull toolbar: PopupToolbar, @IntRange(from = 0) pageIndex: Int, @NonNull pdfPoint: PointF)

Called once a content editing popup toolbar is being prepared to be displayed. This toolbar appears when the user long-presses in content editing mode, either on a text block or on an empty area of the page.

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.