Skip to content

//workflow/com.squareup.workflow1.ui/TextController/onTextChanged

onTextChanged

[jvm]
Content
abstract val onTextChanged: Flow<String>
More info

A Flow that emits the text value whenever it changes – and only when it changes, the current value is not provided at subscription time. Workflows can safely observe changes by converting this value to a worker. (When using multiple instances, remember to provide unique key values to each asWorker call.)

If you can do processing that doesn’t require running a WorkflowAction or triggering a render pass, it can be done in regular Flow operators before converting to a worker.