add On Text Selection Mode Change Listener
open fun addOnTextSelectionModeChangeListener(@NonNull listener: TextSelectionManager.OnTextSelectionModeChangeListener)
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. Must be non-null.