Interface TextSelectionManager
-
- All Implemented Interfaces:
public interface TextSelectionManager
Interface for objects that manage a list of text selection listener instances.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
TextSelectionManager.OnTextSelectionModeChangeListener
Listener for entering and exiting text selection mode.
public interface
TextSelectionManager.OnTextSelectionChangeListener
Listener for text selection changes.
-
Method Summary
Modifier and Type Method Description abstract void
addOnTextSelectionModeChangeListener(@NonNull() TextSelectionManager.OnTextSelectionModeChangeListener listener)
Adds a OnTextSelectionModeChangeListener, which gets notified when entering and exiting a text selection in the document. abstract void
removeOnTextSelectionModeChangeListener(@NonNull() TextSelectionManager.OnTextSelectionModeChangeListener listener)
Removes a previously added OnTextSelectionModeChangeListener, which gets notified when entering and exiting a text selection in the document. abstract void
addOnTextSelectionChangeListener(@NonNull() TextSelectionManager.OnTextSelectionChangeListener listener)
Adds a OnTextSelectionChangeListener, which gets notified when text selection changes in the document, such as different text is selected. abstract void
removeOnTextSelectionChangeListener(@NonNull() TextSelectionManager.OnTextSelectionChangeListener listener)
Removes a OnTextSelectionChangeListener, which gets notified when text selection changes in the document, such as different text is selected. -
-
Method Detail
-
addOnTextSelectionModeChangeListener
abstract void addOnTextSelectionModeChangeListener(@NonNull() TextSelectionManager.OnTextSelectionModeChangeListener listener)
Adds a 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
- OnTextSelectionModeChangeListener.
-
removeOnTextSelectionModeChangeListener
abstract void removeOnTextSelectionModeChangeListener(@NonNull() TextSelectionManager.OnTextSelectionModeChangeListener listener)
Removes a previously added 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.
-
addOnTextSelectionChangeListener
abstract void addOnTextSelectionChangeListener(@NonNull() TextSelectionManager.OnTextSelectionChangeListener listener)
Adds a 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.
-
removeOnTextSelectionChangeListener
abstract void removeOnTextSelectionChangeListener(@NonNull() TextSelectionManager.OnTextSelectionChangeListener listener)
Removes a 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.
-
-
-
-