public static interface

CollabViewerTabHostFragment2.CollabTabHostListener

implements PdfViewCtrlTabHostFragment2.TabHostListener
com.pdftron.collab.ui.viewer.CollabViewerTabHostFragment2.CollabTabHostListener

Summary

Public Methods
abstract boolean canRecreateActivity()
Called when about the re-create Activity for day/night mode
abstract boolean canShowFileCloseSnackbar()
The implementation should determine whether closing a tab should show re-open snackbar.
abstract boolean canShowFileInFolder()
The implementation should determine whether the long press on tab widget should show file info.
abstract void onExitSearchMode()
Called when search view collapsed
abstract void onJumpToSdCardFolder()
Called when an SD card file is opened as a local file
abstract void onLastTabClosed()
Called when the last tab in the tab host has been closed, and therefore there is no more tab.
abstract void onNavButtonPressed()
Called when navigation button has been pressed.
abstract boolean onOpenDocError()
Called when an error has been happened when opening a document.
abstract void onShowFileInFolder(String fileName, String filepath, int itemSource)
The implementation should browse to the specified file in the folder.
abstract void onStartSearchMode()
Called when search view expanded
abstract void onTabChanged(String tag)
Called when a new tab has been selected excluding the initial tab.
abstract void onTabDocumentLoaded(String tag)
Called when document associated with a tab is loaded
abstract void onTabHostHidden()
Called when the tab host has been hidden.
abstract void onTabHostShown()
Called when the tab host has been shown.
abstract void onTabPaused(FileInfo fileInfo, boolean isDocModifiedAfterOpening)
Called when the fragment is paused.
abstract boolean onToolbarCreateOptionsMenu(Menu menu, MenuInflater inflater)
Called when creating Toolbar options menu
abstract boolean onToolbarOptionsItemSelected(MenuItem item)
Called when Toolbar options menu selected
abstract boolean onToolbarPrepareOptionsMenu(Menu menu)
Called when preparing Toolbar options menu
[Expand]
Inherited Methods
From interface com.pdftron.pdf.controls.PdfViewCtrlTabHostBaseFragment.TabHostListener

Public Methods

public abstract boolean canRecreateActivity ()

Called when about the re-create Activity for day/night mode

public abstract boolean canShowFileCloseSnackbar ()

The implementation should determine whether closing a tab should show re-open snackbar.

Returns
  • true if can show snackbar, false otherwise

public abstract boolean canShowFileInFolder ()

The implementation should determine whether the long press on tab widget should show file info.

Returns
  • true if long press shows file info, false otherwise

public abstract void onExitSearchMode ()

Called when search view collapsed

public abstract void onJumpToSdCardFolder ()

Called when an SD card file is opened as a local file

public abstract void onLastTabClosed ()

Called when the last tab in the tab host has been closed, and therefore there is no more tab.

public abstract void onNavButtonPressed ()

Called when navigation button has been pressed.

public abstract boolean onOpenDocError ()

Called when an error has been happened when opening a document.

public abstract void onShowFileInFolder (String fileName, String filepath, int itemSource)

The implementation should browse to the specified file in the folder.

Parameters
fileName The file name
filepath The file path
itemSource The item source of the file

public abstract void onStartSearchMode ()

Called when search view expanded

public abstract void onTabChanged (String tag)

Called when a new tab has been selected excluding the initial tab.

Parameters
tag the tab tag changed to

public abstract void onTabDocumentLoaded (String tag)

Called when document associated with a tab is loaded

Parameters
tag the document tag

public abstract void onTabHostHidden ()

Called when the tab host has been hidden.

public abstract void onTabHostShown ()

Called when the tab host has been shown.

public abstract void onTabPaused (FileInfo fileInfo, boolean isDocModifiedAfterOpening)

Called when the fragment is paused.

Parameters
fileInfo The file shown when tab has been paused
isDocModifiedAfterOpening True if document has been modified after opening; False otherwise

public abstract boolean onToolbarCreateOptionsMenu (Menu menu, MenuInflater inflater)

Called when creating Toolbar options menu

Parameters
menu the menu
inflater the inflater

public abstract boolean onToolbarOptionsItemSelected (MenuItem item)

Called when Toolbar options menu selected

Parameters
item the menu item

public abstract boolean onToolbarPrepareOptionsMenu (Menu menu)

Called when preparing Toolbar options menu

Parameters
menu the menu