Function

cut

The method for cutting text.

cut

Source set: Common
suspend fun cut()

The method for cutting text.

If there is no selection, return. Put the selected text into the Clipboard. The new text should be the text before the selection plus the text after the selection. And the new cursor offset should be between the text before the selection, and the text after the selection.

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: