Function

getTextAfterSelection

Returns the text after the selection.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free

getTextAfterSelection

Common
fun TextFieldValue.getTextAfterSelection(maxChars: Int): AnnotatedString

Returns the text after the selection.

Parameters

maxChars maximum number of characters (exclusive) after the maximum value in TextFieldValue.selection.