setText

Function

Common
fun SemanticsPropertyReceiver.setText(
    label: String? = null,
    action: ((AnnotatedString) -> Boolean)?,
)

Action to set the text contents of this node.

Expected to be used on editable text fields.

Parameters

labelOptional label for this action.
actionAction to be performed when SemanticsActions.SetText is called.