public interface

TextSelectionManager

com.pspdfkit.ui.special_mode.manager.TextSelectionManager
Known Indirect Subclasses

Class Overview

Interface for objects that manage a list of text selection listener instances.

Summary

Nested Classes
interface TextSelectionManager.OnTextSelectionChangeListener Listener for text selection changes. 
interface TextSelectionManager.OnTextSelectionModeChangeListener Listener for entering and exiting text selection mode. 
Public Methods
abstract void addOnTextSelectionChangeListener(TextSelectionManager.OnTextSelectionChangeListener listener)
Adds a TextSelectionManager.OnTextSelectionChangeListener, which gets notified when text selection changes in the document, such as different text is selected.
abstract void addOnTextSelectionModeChangeListener(TextSelectionManager.OnTextSelectionModeChangeListener listener)
Adds a TextSelectionManager.OnTextSelectionModeChangeListener, which gets notified when entering and exiting a text selection in the document.
abstract void removeOnTextSelectionChangeListener(TextSelectionManager.OnTextSelectionChangeListener listener)
Removes a TextSelectionManager.OnTextSelectionChangeListener, which gets notified when text selection changes in the document, such as different text is selected.
abstract void removeOnTextSelectionModeChangeListener(TextSelectionManager.OnTextSelectionModeChangeListener listener)
Removes a previously added TextSelectionManager.OnTextSelectionModeChangeListener, which gets notified when entering and exiting a text selection in the document.

Public Methods

public abstract void addOnTextSelectionChangeListener (TextSelectionManager.OnTextSelectionChangeListener listener)

Adds a TextSelectionManager.OnTextSelectionChangeListener, which gets notified when text selection changes in the document, such as different text is selected. 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 Listener to register. Must be non-null.

public abstract void addOnTextSelectionModeChangeListener (TextSelectionManager.OnTextSelectionModeChangeListener listener)

Adds a TextSelectionManager.OnTextSelectionModeChangeListener, which gets notified when entering and exiting a text selection in the document. 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 TextSelectionManager.OnTextSelectionModeChangeListener. Must be non-null.

public abstract void removeOnTextSelectionChangeListener (TextSelectionManager.OnTextSelectionChangeListener listener)

Removes a TextSelectionManager.OnTextSelectionChangeListener, which gets notified when text selection changes in the document, such as different text is selected. Upon calling this method the listener will no longer be notified. If the listener has not been added, this method will be a no-op.

Parameters
listener Listener to unregister. Must be non-null.

public abstract void removeOnTextSelectionModeChangeListener (TextSelectionManager.OnTextSelectionModeChangeListener listener)

Removes a previously added TextSelectionManager.OnTextSelectionModeChangeListener, which gets notified when entering and exiting a text selection in the document. Upon calling this method the listener will no longer be notified. If the listener has not been added, this method will be a no-op.

Parameters
listener Listener to unregister. Must be non-null.