The InputHelper is a helper class to perform operations related to the current input connection
replaceText | Replaces a composing region with the provided text |
removeText | Removes a composing region |
insertText | Inserts text at the composing position |
clearText | Removes all text from the current editor |
Replaces content, in the region delimited by start and end, with the provided text.
Notes:
fun replaceText(start: Int, end: Int, text: String)
Removes content in the region delimited by start and end.
Notes:
fun removeText(start: Int, end: Int)
Inserts text at the provided position
Notes:
fun insertText(position: Int, text: String)
Removes all text on the underlying editor
fun clearText()