public static interface

ToolConfig.PanLongPressSwitchToolCallback

com.pdftron.pdf.config.ToolConfig.PanLongPressSwitchToolCallback

Class Overview

A functional interface for pan tool switch tool when long pressing on annotation

Summary

Public Methods
abstract ToolManager.ToolMode onPanLongPressSwitchTool(Annot annot, boolean isMadeByPDFTron, boolean isTextSelect)
Called when onLongPress(MotionEvent) need to switch to next tool

Public Methods

public abstract ToolManager.ToolMode onPanLongPressSwitchTool (Annot annot, boolean isMadeByPDFTron, boolean isTextSelect)

Called when onLongPress(MotionEvent) need to switch to next tool

Parameters
annot potential annotation that long pressed on
isMadeByPDFTron whether this annotation is created by pdftron
isTextSelect whether long pressing on text
Returns
  • next tool mode Pan to should switch to
Throws
PDFNetException pdfnet exception