com.pspdfkit.listeners.OnDocumentLongPressListener |
Listener for document long press events on the the PdfFragment
.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract boolean |
onDocumentLongPress(PdfDocument document, int pageIndex, MotionEvent event, PointF pagePosition, Annotation longPressedAnnotation)
Called when user long-press / long-clicks on the page.
|
Called when user long-press / long-clicks on the page.
document | Currently opened document. |
---|---|
pageIndex | Page number of the page being long-pressed. |
event | MotionEvent that triggered this page click. May be null if this page click was triggered from keyboard
or accessibility event. |
pagePosition | Tapped page position (in PDF page coordinates with origin on bottom left). Coordinates passed here may exceed the page size
(which is returned by getPageSize(int) ) and can also be negative. If the click was triggered by the
keyboard, pagePosition will be null . |
longPressedAnnotation | Annotation that was long-tapped, or null if no annotation was long-tapped. |
true
if tap was handled by this OnDocumentLongPressListener
and should not be handled by PSPDFKit anymore. If returning
false
PSPDFKit will continue executing it's default action.