public interface

DocumentEditingManager

com.pspdfkit.ui.special_mode.manager.DocumentEditingManager

Class Overview

Interface for objects that manage a Document Editor.

Public Methods

public abstract void addOnDocumentEditingModeChangeListener (DocumentEditingManager.OnDocumentEditingModeChangeListener listener)

Adds a DocumentEditingManager.OnDocumentEditingModeChangeListener to get notified when document editing mode has changed. 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 DocumentEditingManager.OnDocumentEditingModeChangeListener that should be notified. Must be non-null.

public abstract void addOnDocumentEditingPageSelectionChangeListener (DocumentEditingManager.OnDocumentEditingPageSelectionChangeListener listener)

Adds a DocumentEditingManager.OnDocumentEditingPageSelectionChangeListener to get notified when document page selection has changed. 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 DocumentEditingManager.OnDocumentEditingPageSelectionChangeListener that should be notified. Must be non-null.

public abstract void removeOnDocumentEditingModeChangeListener (DocumentEditingManager.OnDocumentEditingModeChangeListener listener)

Removes a previously registered DocumentEditingManager.OnDocumentEditingModeChangeListener. 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 DocumentEditingManager.OnDocumentEditingModeChangeListener that should be removed. Must be non-null.

public abstract void removeOnDocumentEditingPageSelectionChangeListener (DocumentEditingManager.OnDocumentEditingPageSelectionChangeListener listener)

Removes a previously registered DocumentEditingManager.OnDocumentEditingPageSelectionChangeListener. 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 DocumentEditingManager.OnDocumentEditingPageSelectionChangeListener that should be removed. Must be non-null.