MoveCursorCommand
Kotlin
|Java
class MoveCursorCommand : EditCommand
kotlin.Any | |
↳ | androidx.compose.ui.text.input.MoveCursorCommand |
Moves the cursor with amount characters.
If there is selection, cancel the selection first and move the cursor to the selection start position. Then perform the cursor movement.
Summary
Public constructors | |
---|---|
Moves the cursor with amount characters. |
Public methods | |
---|---|
Unit |
applyTo(buffer: EditingBuffer) Apply the command on the editing buffer. |
Boolean | |
Int |
hashCode() |
String |
toString() |
Properties | |
---|---|
Int |
The amount of cursor movement. |
Public constructors
<init>
MoveCursorCommand(amount: Int)
Moves the cursor with amount characters.
If there is selection, cancel the selection first and move the cursor to the selection start position. Then perform the cursor movement.
Public methods
hashCode
fun hashCode(): Int
toString
fun toString(): String
Properties
amount
val amount: Int
The amount of cursor movement.
If you want to move backward, pass negative value.