Compose Unstyled 2.0 is out! Check the official announcement blog ->
Function

getSelectedText

Returns the currently selected text.

getSelectedText

Source set: Common
fun TextFieldValue.getSelectedText(): AnnotatedString

Returns the currently selected text.

Last updated: