androidx.compose.ui.text.input
VisualTransformation
Fun interface · from org.jetbrains.compose.ui:ui-text:1.12.2
No hand-written docs yet.
Interface used for changing visual output of the input field.
fun interface VisualTransformation
Kinds of VisualTransformation
Anywhere a VisualTransformation is expected, you can pass any of these.
PasswordVisualTransformationui-text
How to get one
Or create one of the kinds listed above.
Used by
Parameters that take a VisualTransformation.
BasicTextField(visualTransformation)OutlinedTextField(visualTransformation)OutlinedTextFieldDefaults.DecorationBox(visualTransformation)TextField(visualTransformation)TextFieldDefaults.DecorationBox(visualTransformation)
Properties
None
val None: VisualTransformation
A special visual transformation object indicating that no transformation is applied.
Functions
filter
fun filter(text: AnnotatedString): TransformedText
Change the visual output of given text.
Library docs
Interface used for changing visual output of the input field.
This interface can be used for changing visual output of the text in the input field. For
example, you can mask characters in password field with asterisk with
PasswordVisualTransformation.