add On Text Selection Change Listener
abstract fun addOnTextSelectionChangeListener(@NonNull listener: TextSelectionManager.OnTextSelectionChangeListener)
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. Must be non-null.