Function

cutWithResult

The method for cutting text.

cutWithResult

Source set: Common
fun cutWithResult(): AnnotatedString?

The method for cutting text.

It returns the text that was cut and it is expected to be copied (stored in a Clipboard). This overload covers the case when handling a 'cut' ClipboardEvent.

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: