Frameworks
React Native
Flutter
Package samples
Cookbook
Version 11
Version 10
Version 9
Version 8
Version 7
Version 6
Version 5
Event listeners can be added to a PdfViewCtrlTabHostFragment2
to listen for document viewer events. This can be done by adding a TabHostListener
using PdfViewCtrlTabHostFragment2.addHostListener()
. Some useful events include:
Event | Description |
---|---|
| Called when document associated with a tab is loaded. |
| Called when the tab host has been shown. |
| Called when the tab host has been hidden. |
| Called when the last tab in the tab host has been closed, and therefore there are no more tabs. |
| Called when a new tab has been selected excluding the initial tab. |
| Called when navigation button has been pressed. |
Similarly, PdfViewCtrlTabFragment2
has its own events and and you can listen for them by adding a TabListener
using PdfViewCtrlTabFragment2.setTabListener()
. Some useful events include:
Event | Description |
---|---|
| Called when the document has been loaded. |
| Called when a new tab has been opened. |
| Called when the tab fragment is paused. |
| Called when download successfully has been finished. |
Touch events, annotation events, quick menu events and tool change events in the document viewer are all managed by the ToolManager
. You can learn more about ToolManager
events here.
Did you find this helpful?
Trial setup questions?
Ask experts on DiscordNeed other help?
Contact SupportPricing or product questions?
Contact Sales