https://kotlinlang.org logo
#coroutines
Title
# coroutines
k

koufa

07/05/2019, 1:53 PM
Hey guys, how do I build the correct way the following scenario with
flow
. I want to listen to text changes from an input field. The classic way would be to add a listener to the input field and respond to text changes in the callback. Now I want to get a
flow
which emits the current text on every text change. Do I need to use a
channel
that sends the text on every text change and then create a flow from the channel? I saw that there are some APIs for that on the flow documentation pages.
j

Jason Ostrander

07/05/2019, 1:56 PM
k

koufa

07/05/2019, 2:08 PM
Thanks I will check it out 🙂
8 Views