public static class

ViewerConfig.Builder

extends Object
java.lang.Object
   ↳ com.pdftron.pdf.config.ViewerConfig.Builder

Summary

Public Constructors
Builder()
Public Methods
ViewerConfig build()
ViewerConfig.Builder documentEditingEnabled(boolean documentEditingEnabled)
Whether to enable document editing.
ViewerConfig.Builder fullscreenModeEnabled(boolean fullscreenModeEnabled)
Whether to enable full screen mode.
ViewerConfig.Builder longPressQuickMenuEnabled(boolean longPressQuickMenuEnabled)
Whether to enable long press quick menu.
ViewerConfig.Builder multiTabEnabled(boolean multiTab)
Whether to enable multi-tab mode.
ViewerConfig.Builder pdfViewCtrlConfig(PDFViewCtrlConfig config)
Sets the PDFViewCtrlConfig for com.pdftron.pdf.PDFViewCtrl
ViewerConfig.Builder rightToLeftModeEnabled(boolean rightToLeftModeEnabled)
Whether to view documents from right to left.
ViewerConfig.Builder setToolManagerBuilder(ToolManagerBuilder toolManagerBuilder)
Sets tool manager builder for building tool manager
ViewerConfig.Builder showAnnotationToolbarOption(boolean showAnnotationToolbarOption)
If Activity or Fragment supply its own Toolbar, then this value is ignored.
ViewerConfig.Builder showAnnotationsList(boolean showAnnotationsList)
If ViewerConfig#showBookmarksView returns false, then this value is ignored.
ViewerConfig.Builder showBookmarksView(boolean showBookmarksView)
If ViewerConfig#showBottomNavBar returns false, then this value is ignored.
ViewerConfig.Builder showBottomNavBar(boolean showBottomNavBar)
Whether to show bottom navigation bar.
ViewerConfig.Builder showCloseTabOption(boolean showCloseTabOption)
If Activity or Fragment supply its own Toolbar, then this value is ignored.
ViewerConfig.Builder showDocumentSettingsOption(boolean showDocumentSettingsOption)
If Activity or Fragment supply its own Toolbar, then this value is ignored.
ViewerConfig.Builder showEditPagesOption(boolean showEditPagesOption)
If Activity or Fragment supply its own Toolbar, then this value is ignored.
ViewerConfig.Builder showOpenFileOption(boolean showOpenFileOption)
If Activity or Fragment supply its own Toolbar, then this value is ignored.
ViewerConfig.Builder showOpenUrlOption(boolean showOpenUrlOption)
If Activity or Fragment supply its own Toolbar, then this value is ignored.
ViewerConfig.Builder showOutlineList(boolean showOutlineList)
If ViewerConfig#showBookmarksView returns false, then this value is ignored.
ViewerConfig.Builder showPageNumberIndicator(boolean showPageNumberIndicator)
Whether to show page number indicator overlay.
ViewerConfig.Builder showPrintOption(boolean showPrintOption)
If Activity or Fragment supply its own Toolbar, then this value is ignored.
ViewerConfig.Builder showRightToLeftOption(boolean showRightToLeftOption)
Whether to enable RTL option in the view mode dialog.
ViewerConfig.Builder showSearchView(boolean showSearchView)
If Activity or Fragment supply its own Toolbar, then this value is ignored.
ViewerConfig.Builder showShareOption(boolean showShareOption)
If Activity or Fragment supply its own Toolbar, then this value is ignored.
ViewerConfig.Builder showThumbnailView(boolean showThumbnailView)
If ViewerConfig#showBottomNavBar returns false, then this value is ignored.
ViewerConfig.Builder showUserBookmarksList(boolean showUserBookmarksList)
If ViewerConfig#showBookmarksView returns false, then this value is ignored.
ViewerConfig.Builder toolManagerBuilderStyleRes(int styleRes)
Sets the style resource ID used for ToolManagerBuilder
ViewerConfig.Builder toolbarTitle(String toolbarTitle)
If Activity or Fragment supply its own Toolbar, then this value is ignored.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Builder ()

Public Methods

public ViewerConfig build ()

public ViewerConfig.Builder documentEditingEnabled (boolean documentEditingEnabled)

Whether to enable document editing.

public ViewerConfig.Builder fullscreenModeEnabled (boolean fullscreenModeEnabled)

Whether to enable full screen mode.

public ViewerConfig.Builder longPressQuickMenuEnabled (boolean longPressQuickMenuEnabled)

Whether to enable long press quick menu.

public ViewerConfig.Builder multiTabEnabled (boolean multiTab)

Whether to enable multi-tab mode.

public ViewerConfig.Builder pdfViewCtrlConfig (PDFViewCtrlConfig config)

Sets the PDFViewCtrlConfig for com.pdftron.pdf.PDFViewCtrl

public ViewerConfig.Builder rightToLeftModeEnabled (boolean rightToLeftModeEnabled)

Whether to view documents from right to left. If ViewerConfig#showRightToLeftOption return false, then this value is ignored.

public ViewerConfig.Builder setToolManagerBuilder (ToolManagerBuilder toolManagerBuilder)

Sets tool manager builder for building tool manager

Parameters
toolManagerBuilder The tool manager buidler
Returns
  • This PDFViewCtrlConfig

public ViewerConfig.Builder showAnnotationToolbarOption (boolean showAnnotationToolbarOption)

If Activity or Fragment supply its own Toolbar, then this value is ignored. Whether to show annotation toolbar view icon.

public ViewerConfig.Builder showAnnotationsList (boolean showAnnotationsList)

If ViewerConfig#showBookmarksView returns false, then this value is ignored. Whether to show annotation list.

public ViewerConfig.Builder showBookmarksView (boolean showBookmarksView)

If ViewerConfig#showBottomNavBar returns false, then this value is ignored. If all of ViewerConfig#showAnnotationsList, ViewerConfig#showOutlineList, and ViewerConfig#showUserBookmarksList return false, then this value is ignored. Whether to show bookmarks view icon.

public ViewerConfig.Builder showBottomNavBar (boolean showBottomNavBar)

Whether to show bottom navigation bar.

public ViewerConfig.Builder showCloseTabOption (boolean showCloseTabOption)

If Activity or Fragment supply its own Toolbar, then this value is ignored. Whether to show close document option in the overflow menu.

public ViewerConfig.Builder showDocumentSettingsOption (boolean showDocumentSettingsOption)

If Activity or Fragment supply its own Toolbar, then this value is ignored. Whether to show bookmarks view icon.

public ViewerConfig.Builder showEditPagesOption (boolean showEditPagesOption)

If Activity or Fragment supply its own Toolbar, then this value is ignored. Whether to show edit pages option.

public ViewerConfig.Builder showOpenFileOption (boolean showOpenFileOption)

If Activity or Fragment supply its own Toolbar, then this value is ignored. Whether to show open file option.

public ViewerConfig.Builder showOpenUrlOption (boolean showOpenUrlOption)

If Activity or Fragment supply its own Toolbar, then this value is ignored. Whether to show open url option.

public ViewerConfig.Builder showOutlineList (boolean showOutlineList)

If ViewerConfig#showBookmarksView returns false, then this value is ignored. Whether to show outline list.

public ViewerConfig.Builder showPageNumberIndicator (boolean showPageNumberIndicator)

Whether to show page number indicator overlay.

public ViewerConfig.Builder showPrintOption (boolean showPrintOption)

If Activity or Fragment supply its own Toolbar, then this value is ignored. Whether to show print option.

public ViewerConfig.Builder showRightToLeftOption (boolean showRightToLeftOption)

Whether to enable RTL option in the view mode dialog.

public ViewerConfig.Builder showSearchView (boolean showSearchView)

If Activity or Fragment supply its own Toolbar, then this value is ignored. Whether to show search view icon.

public ViewerConfig.Builder showShareOption (boolean showShareOption)

If Activity or Fragment supply its own Toolbar, then this value is ignored. Whether to show share icon.

public ViewerConfig.Builder showThumbnailView (boolean showThumbnailView)

If ViewerConfig#showBottomNavBar returns false, then this value is ignored. Whether to show thumbnail view icon.

public ViewerConfig.Builder showUserBookmarksList (boolean showUserBookmarksList)

If ViewerConfig#showBookmarksView returns false, then this value is ignored. Whether to show user bookmarks list.

public ViewerConfig.Builder toolManagerBuilderStyleRes (int styleRes)

Sets the style resource ID used for ToolManagerBuilder

public ViewerConfig.Builder toolbarTitle (String toolbarTitle)

If Activity or Fragment supply its own Toolbar, then this value is ignored. Toolbar title.