Compose API Reference Compose UI Text getSelectedText Function Common fun TextFieldValue.getSelectedText(): AnnotatedString Returns the currently selected text.