setSelectionRange

fun setSelectionRange(start: Int, end: Int, direction: String = definedExternally)(source)

Since Kotlin

1.1