SetSelectionCommand
Kotlin
|Java
class SetSelectionCommand : EditCommand
kotlin.Any | |
↳ | androidx.compose.ui.text.input.SetSelectionCommand |
Sets the selection on the text. When start and end have the same value, it sets the cursor position.
Summary
Public constructors | |
---|---|
Sets the selection on the text. |
Public methods | |
---|---|
Unit |
applyTo(buffer: EditingBuffer) Apply the command on the editing buffer. |
Boolean | |
Int |
hashCode() |
String |
toString() |
Properties | |
---|---|
Int |
The exclusive end offset of the selection region. |
Int |
The inclusive start offset of the selection region. |
Public constructors
<init>
SetSelectionCommand(
start: Int,
end: Int)
Sets the selection on the text. When start and end have the same value, it sets the cursor position.
Public methods
hashCode
fun hashCode(): Int
toString
fun toString(): String