SetSelectionCommand

Sets the selection on the text. When [start] and [end] have the same value, it sets the cursor

SetSelectionCommand

Class

Common
class SetSelectionCommand(val start: Int, val end: Int) : EditCommand

Sets the selection on the text. When start and end have the same value, it sets the cursor position.

See setSelection(https://developer.android.com/reference/android/view/inputmethod/InputConnection.html#setSelection(int,%2520int)).

Parameters

startThe inclusive start offset of the selection region.
endThe exclusive end offset of the selection region.