Skip to content

//workflow/com.squareup.workflow1.ui/updateText

updateText

[androidJvm]
Content
@WorkflowUiExperimentalApi()

fun EditText.updateText(text: CharSequence)
More info

Helper for setting the text value of an EditText without disrupting the IME connection, or firing change listeners registered via setTextChangedListener if the new text is actually different than the old text.

If text contains a selection, then the selection of this EditText is updated to it.

Intended to be used by LayoutRunners for updating EditTexts from workflow renderings.