Class

MoveCursorCommand

Moves the cursor with amount characters.

Source set: Common
public class MoveCursorCommand(public 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.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: