Classes | |
interface | ConfigurationChangedListener |
interface | ILinkEventListener |
class | LinkInfo |
interface | MenuEventListener |
interface | OnFinishListener |
interface | ToolHandlerChangedListener |
Public Member Functions | |
UIExtensionsManager (Context context, PDFViewCtrl pdfViewCtrl) | |
UIExtensionsManager (Context context, PDFViewCtrl pdfViewCtrl, Config config) | |
boolean | backToNormalState () |
void | backToPrevActivity () |
boolean | canAddAnnot () |
boolean | canModifyContents () |
void | changeState (int state) |
void | enableBottomToolbar (boolean isEnabled) |
void | enableFormHighlight (boolean enable) |
void | enableLinkHighlight (boolean enable) |
void | enableLinks (boolean enable) |
void | enableTopToolbar (boolean isEnabled) |
void | exitPanZoomMode () |
AnnotHandler | getAnnotHandlerByType (int type) |
Activity | getAttachedActivity () |
BackEventListener | getBackEventListener () |
IBarsHandler | getBarManager () |
Config | getConfig () |
RelativeLayout | getContentView () |
AnnotHandler | getCurrentAnnotHandler () |
String | getCurrentSelectedText () |
ToolHandler | getCurrentToolHandler () |
DocumentManager | getDocumentManager () |
Annot | getFocusAnnot () |
long | getFormHighlightColor () |
ILinkEventListener | getLinkEventListener () |
long | getLinkHighlightColor () |
IMainFrame | getMainFrame () |
IMenuView | getMenuView () |
Module | getModuleByName (String name) |
IPanelManager | getPanelManager () |
PDFViewCtrl | getPDFViewCtrl () |
ViewGroup | getRootView () |
int | getSaveDocFlag () |
String | getSavePath () |
int | getSelectionHighlightColor () |
IMultiLineBar | getSettingBar () |
int | getState () |
ToolHandler | getToolHandlerByType (String type) |
void | handleActivityResult (Activity act, int requestCode, int resultCode, Intent data) |
boolean | isContinueAddAnnot () |
boolean | isFormHighlightEnable () |
boolean | isHiddenPanel (PanelSpec.PanelType panelType) |
boolean | isLinkHighlightEnabled () |
boolean | isLinksEnabled () |
boolean | isLoadAnnotModule (Annot annot) |
void | onConfigurationChanged (Activity act, Configuration newConfig) |
void | onCreate (Activity act, PDFViewCtrl pdfViewCtrl, Bundle bundle) |
void | onDestroy (Activity act) |
boolean | onDoubleTap (MotionEvent motionEvent) |
boolean | onDoubleTapEvent (MotionEvent motionEvent) |
boolean | onDown (MotionEvent motionEvent) |
void | onDraw (int pageIndex, Canvas canvas) |
boolean | onFling (MotionEvent motionEvent, MotionEvent motionEvent1, float v, float v1) |
void | onHiddenChanged (boolean hidden) |
boolean | onKeyDown (Activity act, int keyCode, KeyEvent event) |
void | onLongPress (MotionEvent motionEvent) |
void | onPause (Activity act) |
void | onResume (Activity act) |
boolean | onScale (ScaleGestureDetector scaleGestureDetector) |
boolean | onScaleBegin (ScaleGestureDetector scaleGestureDetector) |
void | onScaleEnd (ScaleGestureDetector scaleGestureDetector) |
boolean | onScroll (MotionEvent motionEvent, MotionEvent motionEvent1, float v, float v1) |
void | onShowPress (MotionEvent motionEvent) |
boolean | onSingleTapConfirmed (MotionEvent motionEvent) |
boolean | onSingleTapUp (MotionEvent motionEvent) |
void | onStart (Activity act) |
void | onStop (Activity act) |
boolean | onTouchEvent (int pageIndex, MotionEvent motionEvent) |
void | onXFAPageRemoved (boolean isSuccess, int pageIndex) |
void | onXFAPagesInserted (boolean isSuccess, int pageIndex) |
void | onXFAWidgetAdded (XFAWidget xfaWidget) |
void | onXFAWidgetWillRemove (XFAWidget xfaWidget) |
void | openDocument (String path, byte[] password) |
void | registerAnnotHandler (AnnotHandler handler) |
void | registerConfigurationChangedListener (ConfigurationChangedListener listener) |
boolean | registerLifecycleListener (ILifecycleEventListener listener) |
void | registerMenuEventListener (MenuEventListener listener) |
void | registerModule (Module module) |
boolean | registerStateChangeListener (IStateChangeListener listener) |
void | registerToolHandler (ToolHandler handler) |
void | registerToolHandlerChangedListener (ToolHandlerChangedListener listener) |
void | registerXFAPageEventListener (IXFAPageEventListener listener) |
void | registerXFAWidgetEventListener (IXFAWidgetEventListener listener) |
void | setAttachedActivity (Activity activity) |
void | setBackEventListener (BackEventListener listener) |
void | setContinueAddAnnot (boolean continueAddAnnot) |
void | setCurrentToolHandler (ToolHandler toolHandler) |
void | setFilePath (String path) |
void | setFormHighlightColor (long color) |
void | setLinkEventListener (ILinkEventListener listener) |
void | setLinkHighlightColor (long color) |
void | setOnFinishListener (OnFinishListener listener) |
void | setPanelHidden (boolean isHidden, PanelSpec.PanelType panelType) |
void | setSaveDocFlag (int flag) |
void | setSavePath (String savePath) |
void | setSelectionHighlightColor (int color) |
boolean | shouldViewCtrlDraw (Annot annot) |
void | startPrintJob (Context context, PDFDoc pdfDoc, String printJobName, String fileName, IPrintResultCallback callback) |
void | startPrintJob (Context context, XFADoc xfaDoc, String printJobName, String fileName, IPrintResultCallback callback) |
void | triggerDismissMenuEvent () |
void | unregisterAnnotHandler (AnnotHandler handler) |
void | unregisterConfigurationChangedListener (ConfigurationChangedListener listener) |
boolean | unregisterLifecycleListener (ILifecycleEventListener listener) |
void | unregisterMenuEventListener (MenuEventListener listener) |
void | unregisterModule (Module module) |
boolean | unregisterStateChangeListener (IStateChangeListener listener) |
void | unregisterToolHandler (ToolHandler handler) |
void | unregisterToolHandlerChangedListener (ToolHandlerChangedListener listener) |
void | unregisterXFAPageEventListener (IXFAPageEventListener listener) |
void | unregisterXFAWidgetEventListener (IXFAWidgetEventListener listener) |
Static Public Attributes | |
static final int | LINKTYPE_ANNOT = 0 |
static final int | LINKTYPE_TEXT = 1 |
Class UIExtensionsManager
represents a UI extensions manager.
The UIExtensionsManager
class is mainly used for managing the UI extensions which implement IPDFReader interface, it implements the PDFViewCtrl.UIExtensionsManager interface that is a listener to listen common interaction events and view event, and will dispatch some events to UI extensions, it also defines functions to manage the UI extensions.
com.foxit.uiextensions.UIExtensionsManager.UIExtensionsManager | ( | Context | context, |
PDFViewCtrl | pdfViewCtrl | ||
) |
Instantiates a new UI extensions manager.
context | A Context object which species the context. |
pdfViewCtrl | A PDFViewCtrl object which species the PDF view control. |
com.foxit.uiextensions.UIExtensionsManager.UIExtensionsManager | ( | Context | context, |
PDFViewCtrl | pdfViewCtrl, | ||
Config | config | ||
) |
Instantiates a new UI extensions manager with modules config.
context | A Context object which species the context. |
pdfViewCtrl | A PDFViewCtrl object which species the PDF view control. |
config | A Config object which species a modules loading config, if null, UIExtension manager will load all modules by default, and equal to UIExtensionsManager(Context, PDFViewCtrl). |
boolean com.foxit.uiextensions.UIExtensionsManager.backToNormalState | ( | ) |
Show normal view reading state
void com.foxit.uiextensions.UIExtensionsManager.backToPrevActivity | ( | ) |
Go back to the previous activity.
Implements com.foxit.uiextensions.IPDFReader.
boolean com.foxit.uiextensions.UIExtensionsManager.canAddAnnot | ( | ) |
Check whether the document can add annotation
boolean com.foxit.uiextensions.UIExtensionsManager.canModifyContents | ( | ) |
Check whether the document can be modified.
void com.foxit.uiextensions.UIExtensionsManager.changeState | ( | int | state | ) |
Change the read state
state | should be one of ReadStateConfig.STATE_XXX |
Implements com.foxit.uiextensions.IPDFReader.
void com.foxit.uiextensions.UIExtensionsManager.enableBottomToolbar | ( | boolean | isEnabled | ) |
Whether show the bottom tool bar
isEnabled | True show the bottom tool bar, or otherwise. |
void com.foxit.uiextensions.UIExtensionsManager.enableFormHighlight | ( | boolean | enable | ) |
Enable the highlight color of form field.
enable | True means highlight color of form field. can be displayed, false for else. |
void com.foxit.uiextensions.UIExtensionsManager.enableLinkHighlight | ( | boolean | enable | ) |
Enable highlight color of link annotation
enable | True means highlight color of link annotation can be displayed, false for else. |
void com.foxit.uiextensions.UIExtensionsManager.enableLinks | ( | boolean | enable | ) |
Enable link annotation action event.
enable | True means link annotation action event can be triggered, false for else. |
void com.foxit.uiextensions.UIExtensionsManager.enableTopToolbar | ( | boolean | isEnabled | ) |
Whether show the top tool bar
isEnabled | True show the top tool bar, or otherwise. |
void com.foxit.uiextensions.UIExtensionsManager.exitPanZoomMode | ( | ) |
Exit the pan zoom mode.
AnnotHandler com.foxit.uiextensions.UIExtensionsManager.getAnnotHandlerByType | ( | int | type | ) |
Get the specified AnnotHandler from current UI extensions manager.
type | The type of AnnotHandler, refer to AnnotHandler#getType(); |
Activity com.foxit.uiextensions.UIExtensionsManager.getAttachedActivity | ( | ) |
Get the attached activity.
BackEventListener com.foxit.uiextensions.UIExtensionsManager.getBackEventListener | ( | ) |
Implements com.foxit.uiextensions.IPDFReader.
IBarsHandler com.foxit.uiextensions.UIExtensionsManager.getBarManager | ( | ) |
Get bar manager
Implements com.foxit.uiextensions.IPDFReader.
Config com.foxit.uiextensions.UIExtensionsManager.getConfig | ( | ) |
Get a property config
RelativeLayout com.foxit.uiextensions.UIExtensionsManager.getContentView | ( | ) |
Implements com.foxit.uiextensions.IPDFReader.
AnnotHandler com.foxit.uiextensions.UIExtensionsManager.getCurrentAnnotHandler | ( | ) |
String com.foxit.uiextensions.UIExtensionsManager.getCurrentSelectedText | ( | ) |
Get current selected text content from text select tool handler.
ToolHandler com.foxit.uiextensions.UIExtensionsManager.getCurrentToolHandler | ( | ) |
Get the current tool handler.
ToolHandler
object which specifies the current tool handler. DocumentManager com.foxit.uiextensions.UIExtensionsManager.getDocumentManager | ( | ) |
Implements com.foxit.uiextensions.IPDFReader.
Annot com.foxit.uiextensions.UIExtensionsManager.getFocusAnnot | ( | ) |
Get the focus annotation.
Implements com.foxit.sdk.PDFViewCtrl.UIExtensionsManager.
long com.foxit.uiextensions.UIExtensionsManager.getFormHighlightColor | ( | ) |
Get the highlight color of form field.
ILinkEventListener com.foxit.uiextensions.UIExtensionsManager.getLinkEventListener | ( | ) |
Get link event listener object.
long com.foxit.uiextensions.UIExtensionsManager.getLinkHighlightColor | ( | ) |
get the highlight color of link annotation.
IMainFrame com.foxit.uiextensions.UIExtensionsManager.getMainFrame | ( | ) |
Get the IMainFrame of the UI extension.
Implements com.foxit.uiextensions.IPDFReader.
IMenuView com.foxit.uiextensions.UIExtensionsManager.getMenuView | ( | ) |
Module com.foxit.uiextensions.UIExtensionsManager.getModuleByName | ( | String | name | ) |
Get the specified module from current UI extensions manager.
name | The specified module name, refer to Module#getName(). |
Module
object with specified module name. IPanelManager com.foxit.uiextensions.UIExtensionsManager.getPanelManager | ( | ) |
PDFViewCtrl com.foxit.uiextensions.UIExtensionsManager.getPDFViewCtrl | ( | ) |
Get the pdf view control
Implements com.foxit.uiextensions.IPDFReader.
ViewGroup com.foxit.uiextensions.UIExtensionsManager.getRootView | ( | ) |
int com.foxit.uiextensions.UIExtensionsManager.getSaveDocFlag | ( | ) |
Get the flag while saving a document has used
String com.foxit.uiextensions.UIExtensionsManager.getSavePath | ( | ) |
int com.foxit.uiextensions.UIExtensionsManager.getSelectionHighlightColor | ( | ) |
Get highlight color (including alpha) when text has selected.
IMultiLineBar com.foxit.uiextensions.UIExtensionsManager.getSettingBar | ( | ) |
Implements com.foxit.uiextensions.IPDFReader.
int com.foxit.uiextensions.UIExtensionsManager.getState | ( | ) |
Get the read state.
ReadStateConfig.STATE_XXX
Implements com.foxit.uiextensions.IPDFReader.
ToolHandler com.foxit.uiextensions.UIExtensionsManager.getToolHandlerByType | ( | String | type | ) |
get the specified ToolHandler from current UI extensions manager.
type | The tool handler type, refer to function ToolHandler#getType(). |
ToolHandler
object with specified type. void com.foxit.uiextensions.UIExtensionsManager.handleActivityResult | ( | Activity | act, |
int | requestCode, | ||
int | resultCode, | ||
Intent | data | ||
) |
Receive and handle result from activity
act | The current activity |
requestCode | The integer request code originally supplied to startActivityForResult(), allowing you to identify who this result came from. |
resultCode | The integer result code returned by the child activity through its setResult(). |
data | An Intent, which can return result data to the caller (various data can be attached to Intent "extras"). |
boolean com.foxit.uiextensions.UIExtensionsManager.isContinueAddAnnot | ( | ) |
Whether or not the annotation can be created continuously.
True
the annotation can be created continuously or otherwise. boolean com.foxit.uiextensions.UIExtensionsManager.isFormHighlightEnable | ( | ) |
Check whether form highlight can be displayed.
boolean com.foxit.uiextensions.UIExtensionsManager.isHiddenPanel | ( | PanelSpec.PanelType | panelType | ) |
Return the current value in setPanelHidden.
panelType | PanelType#ReadingBookmarks PanelType#Outline PanelType#Annotations PanelType#Attachments |
boolean com.foxit.uiextensions.UIExtensionsManager.isLinkHighlightEnabled | ( | ) |
Check whether link highlight can be display.
boolean com.foxit.uiextensions.UIExtensionsManager.isLinksEnabled | ( | ) |
Check whether link annotation action event can be triggered.
boolean com.foxit.uiextensions.UIExtensionsManager.isLoadAnnotModule | ( | Annot | annot | ) |
Check whether the specified annotation module that is loaded.
void com.foxit.uiextensions.UIExtensionsManager.onConfigurationChanged | ( | Activity | act, |
Configuration | newConfig | ||
) |
Should be called in Activity#onConfigurationChanged(Configuration) or Fragment#onConfigurationChanged(Configuration)
act | The current activity |
newConfig | The new device configuration. |
void com.foxit.uiextensions.UIExtensionsManager.onCreate | ( | Activity | act, |
PDFViewCtrl | pdfViewCtrl, | ||
Bundle | bundle | ||
) |
Should be called in Activity#onCreate(Bundle) or Fragment#onCreate(Bundle)
void com.foxit.uiextensions.UIExtensionsManager.onDestroy | ( | Activity | act | ) |
Should be called in Activity#onDestroy() or Fragment#onDestroy()
boolean com.foxit.uiextensions.UIExtensionsManager.onDoubleTap | ( | MotionEvent | e | ) |
Triggered when PDFViewCtrl#onDoubleTap(MotionEvent) is called.
e | The down motion event of the first tap of the double-tap. |
true
means the event is consumed.false
means not. Implements com.foxit.sdk.PDFViewCtrl.IDoubleTapEventListener.
boolean com.foxit.uiextensions.UIExtensionsManager.onDoubleTapEvent | ( | MotionEvent | e | ) |
Triggered when PDFViewCtrl#onDoubleTapEvent(MotionEvent) is called.
e | The motion event that occurred during the double-tap gesture. |
true
means the event is consumed.false
means not. Implements com.foxit.sdk.PDFViewCtrl.IDoubleTapEventListener.
boolean com.foxit.uiextensions.UIExtensionsManager.onDown | ( | MotionEvent | e | ) |
Triggered when PDFViewCtrl#onDown(MotionEvent) is called.
e | The down motion event. |
true
means the event is consumed.false
means not. Implements com.foxit.sdk.PDFViewCtrl.IGestureEventListener.
void com.foxit.uiextensions.UIExtensionsManager.onDraw | ( | int | pageIndex, |
Canvas | canvas | ||
) |
Triggered when
pageIndex | The page index.Valid range: from 0 to (count -1). count is the page count. |
canvas | The canvas of pdf view control. |
Implements com.foxit.sdk.PDFViewCtrl.IDrawEventListener.
boolean com.foxit.uiextensions.UIExtensionsManager.onFling | ( | MotionEvent | e1, |
MotionEvent | e2, | ||
float | velocityX, | ||
float | velocityY | ||
) |
Triggered when PDFViewCtrl#onFling(MotionEvent, MotionEvent, float, float) is called.
e1 | The first down motion event. |
e2 | The move motion event. |
velocityX | The velocity of this fling measured in pixels per second along the x axis. |
velocityY | The velocity of this fling measured in pixels per second along the y axis. |
true
means the event is consumed.false
means not. Implements com.foxit.sdk.PDFViewCtrl.IGestureEventListener.
void com.foxit.uiextensions.UIExtensionsManager.onHiddenChanged | ( | boolean | hidden | ) |
Should be called in Fragment#onHiddenChanged(boolean)
hidden | True if the fragment is now hidden, false otherwise. |
boolean com.foxit.uiextensions.UIExtensionsManager.onKeyDown | ( | Activity | act, |
int | keyCode, | ||
KeyEvent | event | ||
) |
Should be call in Activity#onKeyDown(int, KeyEvent)
act | The current activity |
keyCode | The value in event.getKeyCode(). |
event | Description of the key event. |
true
to prevent this event from being propagated further, or false
to indicate that you have not handled this event and it should continue to be propagated. void com.foxit.uiextensions.UIExtensionsManager.onLongPress | ( | MotionEvent | e | ) |
Triggered when PDFViewCtrl#onLongPress(MotionEvent) is called.
e | The initial on down motion event that started the longpress. |
Implements com.foxit.sdk.PDFViewCtrl.IGestureEventListener.
void com.foxit.uiextensions.UIExtensionsManager.onPause | ( | Activity | act | ) |
Should be called in Activity#onPause() or Fragment#onPause()
void com.foxit.uiextensions.UIExtensionsManager.onResume | ( | Activity | act | ) |
Should be called in Activity#onResume() or Fragment#onResume()
boolean com.foxit.uiextensions.UIExtensionsManager.onScale | ( | ScaleGestureDetector | detector | ) |
Triggered when PDFViewCtrl#onScale(ScaleGestureDetector) is called.
detector | The detector reporting the event. |
true
means the detector should consider this event as handled.false
means not. Implements com.foxit.sdk.PDFViewCtrl.IScaleGestureEventListener.
boolean com.foxit.uiextensions.UIExtensionsManager.onScaleBegin | ( | ScaleGestureDetector | detector | ) |
Triggered when PDFViewCtrl#onScaleBegin(ScaleGestureDetector) is called.
detector | The detector reporting the event. |
true
means the detector should continue recognizing this gesture.false
means not. Implements com.foxit.sdk.PDFViewCtrl.IScaleGestureEventListener.
void com.foxit.uiextensions.UIExtensionsManager.onScaleEnd | ( | ScaleGestureDetector | detector | ) |
Triggered when PDFViewCtrl#onScaleEnd(ScaleGestureDetector) is called.
detector | The detector reporting the event. |
Implements com.foxit.sdk.PDFViewCtrl.IScaleGestureEventListener.
boolean com.foxit.uiextensions.UIExtensionsManager.onScroll | ( | MotionEvent | e1, |
MotionEvent | e2, | ||
float | distanceX, | ||
float | distanceY | ||
) |
Triggered when PDFViewCtrl#onScroll(MotionEvent, MotionEvent, float, float) is called.
e1 | The first down motion event that started the scrolling. |
e2 | The move motion event that triggered the current onScroll. |
distanceX | The distance along the X axis that has been scrolled since the last call to onScroll. |
distanceY | The distance along the Y axis that has been scrolled since the last call to onScroll. |
true
means the event is consumed.false
means not. Implements com.foxit.sdk.PDFViewCtrl.IGestureEventListener.
void com.foxit.uiextensions.UIExtensionsManager.onShowPress | ( | MotionEvent | e | ) |
Triggered when PDFViewCtrl#onShowPress(MotionEvent) is called.
e | The down motion event. |
Implements com.foxit.sdk.PDFViewCtrl.IGestureEventListener.
boolean com.foxit.uiextensions.UIExtensionsManager.onSingleTapConfirmed | ( | MotionEvent | e | ) |
Triggered when PDFViewCtrl#onSingleTapConfirmed(MotionEvent) is called.
e | The down motion event of the single-tap. |
true
means the event is consumed.false
means not. Implements com.foxit.sdk.PDFViewCtrl.IDoubleTapEventListener.
boolean com.foxit.uiextensions.UIExtensionsManager.onSingleTapUp | ( | MotionEvent | e | ) |
Triggered when PDFViewCtrl#onSingleTapUp(MotionEvent) is called.
e | The up motion event that completed the first tap |
true
means the event is consumed.false
means not. Implements com.foxit.sdk.PDFViewCtrl.IGestureEventListener.
void com.foxit.uiextensions.UIExtensionsManager.onStart | ( | Activity | act | ) |
Should be called in Activity#onStart() or Fragment#onStart()
void com.foxit.uiextensions.UIExtensionsManager.onStop | ( | Activity | act | ) |
Should be called in Activity#onStop() or Fragment#onStop()
boolean com.foxit.uiextensions.UIExtensionsManager.onTouchEvent | ( | int | pageIndex, |
MotionEvent | event | ||
) |
Triggered when PDFViewCtrl#onTouchEvent(MotionEvent) is called.
pageIndex | The page index.Valid range: from 0 to (count -1). count is the page count. |
event | A MotionEvent object which species the event. |
true
means the event was handled, while false
means not. Implements com.foxit.sdk.PDFViewCtrl.UIExtensionsManager.
void com.foxit.uiextensions.UIExtensionsManager.onXFAPageRemoved | ( | boolean | isSuccess, |
int | pageIndex | ||
) |
Called when the specified xfa page has removed.
void com.foxit.uiextensions.UIExtensionsManager.onXFAPagesInserted | ( | boolean | isSuccess, |
int | pageIndex | ||
) |
Called when a xfa page has added in the specified position.
void com.foxit.uiextensions.UIExtensionsManager.onXFAWidgetAdded | ( | XFAWidget | xfaWidget | ) |
Called when a XFAWidget has added.
void com.foxit.uiextensions.UIExtensionsManager.onXFAWidgetWillRemove | ( | XFAWidget | xfaWidget | ) |
Called when a XFAWidget will be removed.
void com.foxit.uiextensions.UIExtensionsManager.openDocument | ( | String | path, |
byte [] | password | ||
) |
Open a PDF document from a specified PDF file path.
path | A PDF file path. |
password | A byte array which specifies the password used to load the PDF document content. It can be either user password or owner password. If the PDF document is not encrypted by password, just pass an empty string. |
void com.foxit.uiextensions.UIExtensionsManager.registerAnnotHandler | ( | AnnotHandler | handler | ) |
Register the specified AnnotHandler to current UI extensions manager.
handler | A AnnotHandler to use. |
void com.foxit.uiextensions.UIExtensionsManager.registerConfigurationChangedListener | ( | ConfigurationChangedListener | listener | ) |
Register a callback to be invoked when the configuration changed.
listener | a ConfigurationChangedListener to use |
boolean com.foxit.uiextensions.UIExtensionsManager.registerLifecycleListener | ( | ILifecycleEventListener | listener | ) |
Register a callback to be invoked when the activity of fragment lifecycle ILifecycleEventListener#onCreate(Activity, Bundle), ILifecycleEventListener#onStart(Activity), ILifecycleEventListener#onPause(Activity), ILifecycleEventListener#onResume(Activity), ILifecycleEventListener#onStop(Activity), ILifecycleEventListener#onDestroy(Activity), ILifecycleEventListener#onSaveInstanceState(Activity, Bundle), ILifecycleEventListener#onHiddenChanged(boolean), ILifecycleEventListener#onActivityResult(Activity, int, int, Intent) executing.
listener | the specified ILifecycleEventListener |
Implements com.foxit.uiextensions.IPDFReader.
void com.foxit.uiextensions.UIExtensionsManager.registerMenuEventListener | ( | MenuEventListener | listener | ) |
Register a callback to be invoked when the menu event has triggered.
void com.foxit.uiextensions.UIExtensionsManager.registerModule | ( | Module | module | ) |
Register the specified module to current UI extensions manager.
Note: This method is only used within RDK
module | A Module object to be registered. |
boolean com.foxit.uiextensions.UIExtensionsManager.registerStateChangeListener | ( | IStateChangeListener | listener | ) |
Register a callback to be invoked when the state changed.
listener | the IStateChangeListener to use. |
Implements com.foxit.uiextensions.IPDFReader.
void com.foxit.uiextensions.UIExtensionsManager.registerToolHandler | ( | ToolHandler | handler | ) |
Register the specified ToolHandler to current UI extensions manager.
handler | A ToolHandler object to be registered. |
void com.foxit.uiextensions.UIExtensionsManager.registerToolHandlerChangedListener | ( | ToolHandlerChangedListener | listener | ) |
Register a callback to be invoked when the tool handler changed.
Note: This method is only used within RDK
void com.foxit.uiextensions.UIExtensionsManager.registerXFAPageEventListener | ( | IXFAPageEventListener | listener | ) |
Register a xfa page event listener.
listener | An IPageEventListener object to be registered. |
void com.foxit.uiextensions.UIExtensionsManager.registerXFAWidgetEventListener | ( | IXFAWidgetEventListener | listener | ) |
Register a xfa widget event listener.
listener | An IXFAWidgetEventListener object to be registered. |
void com.foxit.uiextensions.UIExtensionsManager.setAttachedActivity | ( | Activity | activity | ) |
Set the attached activity.
If you want add a Note, FreeText, FileAttachment annotation; you must set the attached activity.
If you want to use the function of adding reply or comment to the annotation or about thumbnail, you must set the attached activity and it must be a FragmentActivity.
activity | The attached activity. |
void com.foxit.uiextensions.UIExtensionsManager.setBackEventListener | ( | BackEventListener | listener | ) |
Set a BackEventListener to be invoked when the back button clicked.
listener | The BackEventListener to use |
Implements com.foxit.uiextensions.IPDFReader.
void com.foxit.uiextensions.UIExtensionsManager.setContinueAddAnnot | ( | boolean | continueAddAnnot | ) |
Set whether the annotation can be created continuously. The default is false.
continueAddAnnot | whether the annot can be created continuously. |
void com.foxit.uiextensions.UIExtensionsManager.setCurrentToolHandler | ( | ToolHandler | toolHandler | ) |
Set the current tool handler.
toolHandler | A ToolHandler object which specifies the current tool handler. |
void com.foxit.uiextensions.UIExtensionsManager.setFilePath | ( | String | path | ) |
Set the file path
void com.foxit.uiextensions.UIExtensionsManager.setFormHighlightColor | ( | long | color | ) |
set form highlight color
color | the form highlight color to be set |
void com.foxit.uiextensions.UIExtensionsManager.setLinkEventListener | ( | ILinkEventListener | listener | ) |
Set link event listener.
listener | The specified link event listener. |
void com.foxit.uiextensions.UIExtensionsManager.setLinkHighlightColor | ( | long | color | ) |
Set the highlight color of link annotation.
color | the highlight color to be set |
void com.foxit.uiextensions.UIExtensionsManager.setOnFinishListener | ( | OnFinishListener | listener | ) |
Set the OnFinishListener to be invoked when the document closed and current activity has exited.
listener | the OnFinishListener to use. |
void com.foxit.uiextensions.UIExtensionsManager.setPanelHidden | ( | boolean | isHidden, |
PanelSpec.PanelType | panelType | ||
) |
According to the PanelType control whether to show or hide the panel.
It will be work while the annotation module has been loaded.
isHidden | true means to hidden the panel. |
panelType | PanelType#ReadingBookmarks PanelType#Outline PanelType#Annotations PanelType#Attachments |
void com.foxit.uiextensions.UIExtensionsManager.setSaveDocFlag | ( | int | flag | ) |
Set the flag to be used when the document has saved
void com.foxit.uiextensions.UIExtensionsManager.setSavePath | ( | String | savePath | ) |
Set the path where the document will be saved
void com.foxit.uiextensions.UIExtensionsManager.setSelectionHighlightColor | ( | int | color | ) |
Set highlight color (including alpha) when select text.
color | The highlight color to be set. |
boolean com.foxit.uiextensions.UIExtensionsManager.shouldViewCtrlDraw | ( | Annot | annot | ) |
Whether PDFViewCtrl draw the specified annotation.
annot | The specified annotation. |
Implements com.foxit.sdk.PDFViewCtrl.UIExtensionsManager.
void com.foxit.uiextensions.UIExtensionsManager.startPrintJob | ( | Context | context, |
PDFDoc | pdfDoc, | ||
String | printJobName, | ||
String | fileName, | ||
IPrintResultCallback | callback | ||
) |
Print PDF documents and Static XFA documents(that is xfaDoc.getType() == XFADoc.e_Static)
Note: Only when OS version is Kitkat and above (Android API >= 19) the print function can be used
context | The context to use. it must be instanceof Activity. |
pdfDoc | The PDFDoc Object, it can not be empty . |
printJobName | print job name, it is can be null or empty. |
fileName | The document name which may be shown to the user and is the file name if the content it describes is saved as a PDF. Cannot be empty. |
callback | print callback IPrintResultCallback |
void com.foxit.uiextensions.UIExtensionsManager.startPrintJob | ( | Context | context, |
XFADoc | xfaDoc, | ||
String | printJobName, | ||
String | fileName, | ||
IPrintResultCallback | callback | ||
) |
Print Dynamic XFA documents (that is xfaDoc.getType() == XFADoc.e_Dynamic)
Note: Only when OS version is Kitkat and above (Android API >= 19) the print function can be used
context | The context to use. it must be instanceof Activity. |
xfaDoc | The XFADoc Object, it can not be empty . |
printJobName | print job name, it is can be null or empty. |
fileName | The document name which may be shown to the user and is the file name if the content it describes is saved as a PDF. Cannot be empty. |
callback | print callback IPrintResultCallback |
void com.foxit.uiextensions.UIExtensionsManager.triggerDismissMenuEvent | ( | ) |
Called when menu has dismissed.
void com.foxit.uiextensions.UIExtensionsManager.unregisterAnnotHandler | ( | AnnotHandler | handler | ) |
Unregister the specified AnnotHandler from current UI extensions manager.
handler | A AnnotHandler to use. |
void com.foxit.uiextensions.UIExtensionsManager.unregisterConfigurationChangedListener | ( | ConfigurationChangedListener | listener | ) |
unregister the specified ConfigurationChangedListener.
listener | the specified ConfigurationChangedListener |
boolean com.foxit.uiextensions.UIExtensionsManager.unregisterLifecycleListener | ( | ILifecycleEventListener | listener | ) |
Unregister the specified ILifecycleEventListener
listener | the specified ILifecycleEventListener |
Implements com.foxit.uiextensions.IPDFReader.
void com.foxit.uiextensions.UIExtensionsManager.unregisterMenuEventListener | ( | MenuEventListener | listener | ) |
Unregister the specified MenuEventListener
void com.foxit.uiextensions.UIExtensionsManager.unregisterModule | ( | Module | module | ) |
Unregister the specified module from current UI extensions manager. Note: This method is only used within RDK
module | A Module object to be unregistered. |
boolean com.foxit.uiextensions.UIExtensionsManager.unregisterStateChangeListener | ( | IStateChangeListener | listener | ) |
Unregister the specified IStateChangeListener
listener | the specified IStateChangeListener |
Implements com.foxit.uiextensions.IPDFReader.
void com.foxit.uiextensions.UIExtensionsManager.unregisterToolHandler | ( | ToolHandler | handler | ) |
Unregister the specified ToolHandler from current UI extensions manager.
Note: This method is only used within RDK
handler | A ToolHandler object to be unregistered. |
void com.foxit.uiextensions.UIExtensionsManager.unregisterToolHandlerChangedListener | ( | ToolHandlerChangedListener | listener | ) |
Unregister the ToolHandler changed listener.
Note: This method is only used within RDK
listener | a ToolHandlerChangedListener to use. |
void com.foxit.uiextensions.UIExtensionsManager.unregisterXFAPageEventListener | ( | IXFAPageEventListener | listener | ) |
Unregister a xfa page event listener.
listener | An IPageEventListener object to be unregistered. |
void com.foxit.uiextensions.UIExtensionsManager.unregisterXFAWidgetEventListener | ( | IXFAWidgetEventListener | listener | ) |
Unregister a xfa widget event listener.
listener | An IXFAWidgetEventListener object to be unregistered. |
|
static |
link type: annotation
|
static |
link type: text