public class

PdfViewCtrlTabFragment2

extends PdfViewCtrlTabBaseFragment
implements DocumentSlider.OnDocumentSliderTrackingListener
java.lang.Object
   ↳ Fragment
     ↳ com.pdftron.pdf.controls.PdfViewCtrlTabBaseFragment
       ↳ com.pdftron.pdf.controls.PdfViewCtrlTabFragment2
Known Direct Subclasses

Class Overview

The PdfViewCtrlTabFragment2 shows PDFViewCtrl out of the box with a various of controls such as AnnotationToolbarComponent, BottomBarComponent, and ThumbnailsViewFragment etc.

Summary

Nested Classes
interface PdfViewCtrlTabFragment2.AnnotationToolbarComponentListener  
interface PdfViewCtrlTabFragment2.ComponentListener  
interface PdfViewCtrlTabFragment2.TabListener Callback interface to be invoked when an interaction is needed. 
[Expand]
Inherited Constants
From class com.pdftron.pdf.controls.PdfViewCtrlTabBaseFragment
Public Constructors
PdfViewCtrlTabFragment2()
Public Methods
DocumentSlider getActiveSeekBar()
View getOverlayStub()
boolean handleKeyUp(int keyCode, KeyEvent event)
Handles key when pressed up.
boolean isAnnotationMode()
boolean isThumbSliderVisible()
void onDocumentSliderStartTrackingTouch()
The overloaded implementation of onDocumentSliderStartTrackingTouch().
void onDocumentSliderStopTrackingTouch(int pageNum)
The overloaded implementation of onDocumentSliderStopTrackingTouch(int).
boolean onHideToolbars()
Called when the androidx.appcompat.widget.Toolbar toolbar of the containing host fragment will be hidden.
void onPageChange(int old_page, int cur_page, PDFViewCtrl.PageChangeState state)
Handles changes the page number.
boolean onScaleBegin(float x, float y)
The overloaded implementation of onScaleBegin(float, float).
boolean onScaleEnd(float x, float y)
The overloaded implementation of onScaleEnd(float, float).
void onScrollChanged(int l, int t, int oldl, int oldt)
The overloaded implementation of onScrollChanged(int, int, int, int).
void openNavigationList(BookmarksDialogFragment bookmarksDialogFragment)
Opens the navigation list as a side sheet
void setAnnotationToolbarComponentListener(PdfViewCtrlTabFragment2.AnnotationToolbarComponentListener listener)
void setComponentListener(PdfViewCtrlTabFragment2.ComponentListener listener)
void setReflowMode(boolean isReflowMode)
Sets the reflow mode.
void setSnackbarListener(ToolManager.SnackbarListener listener)
void setTabListener(PdfViewCtrlTabFragment2.TabListener listener)
void setThumbSliderVisible(boolean visible, boolean animateThumbSlider, boolean showPageNumberIndicator)
Sets the visibility of thumbnail slider.
void setThumbSliderVisible(boolean visible, boolean animateThumbSlider)
Sets the visibility of thumbnail slider.
[Expand]
Inherited Methods
From class com.pdftron.pdf.controls.PdfViewCtrlTabBaseFragment
From class java.lang.Object
From interface com.pdftron.pdf.PDFViewCtrl.DocumentDownloadListener
From interface com.pdftron.pdf.PDFViewCtrl.DocumentLoadListener
From interface com.pdftron.pdf.PDFViewCtrl.PageChangeListener
From interface com.pdftron.pdf.PDFViewCtrl.RenderingListener
From interface com.pdftron.pdf.PDFViewCtrl.UniversalDocumentConversionListener
From interface com.pdftron.pdf.PDFViewCtrl.UniversalDocumentProgressIndicatorListener
From interface com.pdftron.pdf.controls.ReflowControl.OnReflowTapListener
From interface com.pdftron.pdf.dialog.PortfolioDialogFragment.PortfolioDialogFragmentListener
From interface com.pdftron.pdf.tools.ToolManager.ActionGoBackListener
From interface com.pdftron.pdf.tools.ToolManager.AdvancedAnnotationListener
From interface com.pdftron.pdf.tools.ToolManager.AnnotationModificationListener
From interface com.pdftron.pdf.tools.ToolManager.BasicAnnotationListener
From interface com.pdftron.pdf.tools.ToolManager.FileAttachmentAnnotationListener
From interface com.pdftron.pdf.tools.ToolManager.FullSaveListener
From interface com.pdftron.pdf.tools.ToolManager.OnGenericMotionEventListener
From interface com.pdftron.pdf.tools.ToolManager.PdfDocModificationListener
From interface com.pdftron.pdf.tools.ToolManager.PdfTextModificationListener
From interface com.pdftron.pdf.tools.ToolManager.PreToolManagerListener
From interface com.pdftron.pdf.tools.ToolManager.QuickMenuListener
From interface com.pdftron.pdf.tools.ToolManager.ToolChangedListener
From interface com.pdftron.pdf.widget.seekbar.DocumentSlider.OnDocumentSliderTrackingListener

Public Constructors

public PdfViewCtrlTabFragment2 ()

Public Methods

public DocumentSlider getActiveSeekBar ()

public View getOverlayStub ()

public boolean handleKeyUp (int keyCode, KeyEvent event)

Handles key when pressed up.

Parameters
keyCode The key code
event The key event
Returns
  • True if the key is handled

public boolean isAnnotationMode ()

public boolean isThumbSliderVisible ()

public void onDocumentSliderStartTrackingTouch ()

The overloaded implementation of onDocumentSliderStartTrackingTouch().

public void onDocumentSliderStopTrackingTouch (int pageNum)

The overloaded implementation of onDocumentSliderStopTrackingTouch(int).

Parameters
pageNum The current page number on seek bar

public boolean onHideToolbars ()

Called when the androidx.appcompat.widget.Toolbar toolbar of the containing host fragment will be hidden.

Returns
  • true if the toolbar can be hidden, false otherwise.

public void onPageChange (int old_page, int cur_page, PDFViewCtrl.PageChangeState state)

Handles changes the page number.

Parameters
old_page the old page number
cur_page the current (new) page number
state in non-continuous page presentation modes and when the built-in page sliding is in process, this flag is used to indicate the state of page change.

public boolean onScaleBegin (float x, float y)

The overloaded implementation of onScaleBegin(float, float).

public boolean onScaleEnd (float x, float y)

The overloaded implementation of onScaleEnd(float, float).

public void onScrollChanged (int l, int t, int oldl, int oldt)

The overloaded implementation of onScrollChanged(int, int, int, int).

public void openNavigationList (BookmarksDialogFragment bookmarksDialogFragment)

Opens the navigation list as a side sheet

public void setAnnotationToolbarComponentListener (PdfViewCtrlTabFragment2.AnnotationToolbarComponentListener listener)

public void setComponentListener (PdfViewCtrlTabFragment2.ComponentListener listener)

public void setReflowMode (boolean isReflowMode)

Sets the reflow mode.

Parameters
isReflowMode True if reflow mode is enabled

public void setSnackbarListener (ToolManager.SnackbarListener listener)

public void setTabListener (PdfViewCtrlTabFragment2.TabListener listener)

Parameters
listener The listener

public void setThumbSliderVisible (boolean visible, boolean animateThumbSlider, boolean showPageNumberIndicator)

Sets the visibility of thumbnail slider.

Parameters
visible True if the thumbnail slider should be visible
animateThumbSlider True if the visibility should be changed with animation
showPageNumberIndicator True if the page number indicator will show together with the slider

public void setThumbSliderVisible (boolean visible, boolean animateThumbSlider)

Sets the visibility of thumbnail slider.

Parameters
visible True if the thumbnail slider should be visible
animateThumbSlider True if the visibility should be changed with animation