public static interface

ViewModePickerDialogFragment.ViewModePickerDialogFragmentListener

com.pdftron.pdf.dialog.ViewModePickerDialogFragment.ViewModePickerDialogFragmentListener
Known Indirect Subclasses

Class Overview

Listener interface for view mode dialog events.

Summary

Public Methods
abstract boolean checkTabConversionAndAlert(int messageID, boolean allowConverted)
The implementation should check tab conversion and shows the alert if needed.
abstract boolean onCustomColorModeSelected(int bgColor, int txtColor)
Called when a custom color mode is selected
abstract int onReflowZoomInOut(boolean flagZoomIn)
The implementation should zoom in/out reflow
abstract boolean onViewModeColorSelected(int colorMode)
Called when a color mode has been selected.
abstract void onViewModePickerDialogFragmentDismiss()
Called when the dialog has been dismissed.
abstract void onViewModeSelected(String viewMode)
Called when a view mode has been selected.

Public Methods

public abstract boolean checkTabConversionAndAlert (int messageID, boolean allowConverted)

The implementation should check tab conversion and shows the alert if needed.

Parameters
messageID The message ID
allowConverted True if conversion is allowed
Returns
  • True if handled

public abstract boolean onCustomColorModeSelected (int bgColor, int txtColor)

Called when a custom color mode is selected

Parameters
bgColor The selected background color
txtColor The selected text color
Returns
  • True if the dialog should be dismissed

public abstract int onReflowZoomInOut (boolean flagZoomIn)

The implementation should zoom in/out reflow

Parameters
flagZoomIn True if zoom in; False if zoom out
Returns
  • The text size raging from 0 to 100

public abstract boolean onViewModeColorSelected (int colorMode)

Called when a color mode has been selected.

Parameters
colorMode The color mode
Returns
  • True if the dialog should be dismissed

public abstract void onViewModePickerDialogFragmentDismiss ()

Called when the dialog has been dismissed.

public abstract void onViewModeSelected (String viewMode)

Called when a view mode has been selected.

Parameters
viewMode The selected view mode