com.pspdfkit.annotations.actions.ActionResolver |
![]() |
Action resolver for running a Action
. Actions can be stored in annotations or outline elements and executed for any open document. While some actions
require a displayed document (e.g. GoToAction
) other actions may cause the user to leave the app (e.g. UriAction
).
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
addDocumentActionListener(DocumentActionListener listener)
Adds a
DocumentActionListener that can handle actions bound to PDF objects. | ||||||||||
abstract void |
executeAction(Action action)
Execute the given
action . | ||||||||||
abstract void |
executeAction(Action action, ActionSender actionSender)
Execute the given
action . | ||||||||||
abstract void |
removeDocumentActionListener(DocumentActionListener listener)
Removes a previously added
DocumentActionListener that can handle actions bound to PDF objects. |
Adds a DocumentActionListener
that can handle actions bound to PDF objects.
If the listener has already been added previously, this method will be a no-op.
Adding null
is not allowed, and will result in an exception.
listener | DocumentActionListener that should be notified. Must be non-null. |
---|
Execute the given action
.
action | Action to be executed.
|
---|
Execute the given action
.
action | Action to be executed. |
---|---|
actionSender | Optional sender that triggered execution of this action. |
Removes a previously added DocumentActionListener
that can handle actions bound to PDF objects.
Upon calling this method the listener
will no longer be notified of any changes.
If the listener has not been added, this method will be a no-op.
Adding null
is not allowed, and will result in an exception.
listener | DocumentActionListener that should be removed. Must be non-null. |
---|