🌈 Create new beautiful Compose Gradients with our new wesite ->
Function

setText

Action to set the text contents of this node.

setText

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

Action to set the text contents of this node.

Expected to be used on editable text fields.

Parameters

label Optional label for this action.
action Action to be performed when SemanticsActions.SetText is called.

Content updated: