public interface

ActionResolver

com.pspdfkit.annotations.actions.ActionResolver
Known Indirect Subclasses

Class Overview

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).

Summary

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.

Public Methods

public abstract void addDocumentActionListener (DocumentActionListener listener)

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.

Parameters
listener DocumentActionListener that should be notified. Must be non-null.

public abstract void executeAction (Action action)

Execute the given action.

Parameters
action Action to be executed.

public abstract void executeAction (Action action, ActionSender actionSender)

Execute the given action.

Parameters
action Action to be executed.
actionSender Optional sender that triggered execution of this action.

public abstract void removeDocumentActionListener (DocumentActionListener listener)

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.

Parameters
listener DocumentActionListener that should be removed. Must be non-null.