Class

MoveCursorCommand

Moves the cursor with amount characters.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Common
class MoveCursorCommand(val amount: Int) : EditCommand

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.

Parameters

amount The amount of cursor movement. If you want to move backward, pass negative value.