setSelection

fun setSelection(index: Int)

Moves the cursor to the specified offset in the text.

Parameters

index

The position for the cursor.