MoveCursorEditOp
data class MoveCursorEditOp : EditOperation
kotlin.Any | |
↳ | androidx.compose.ui.text.input.MoveCursorEditOp |
An edit operation represents cursor moving.
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 | |
---|---|
An edit operation represents cursor moving. |
Public methods | |
---|---|
Unit |
process(buffer: EditingBuffer) Processes editing buffer with this edit operation. |
Properties | |
---|---|
Int |
The amount of cursor movement. |
Public constructors
<init>
MoveCursorEditOp(amount: Int)
An edit operation represents cursor moving.
If there is selection, cancel the selection first and move the cursor to the selection start position. Then perform the cursor movement.
Public methods
Properties
amount
val amount: Int
The amount of cursor movement.
If you want to move backward, pass negative value.