queryTextChanges

Create a InitialValueFlow of query text changes on the SearchView instance where the value emitted is latest query text.

Note: Created flow keeps a strong reference to the SearchView instance until the coroutine that launched the flow collector is cancelled.

Example of usage:

searchView.queryTextChanges()
.onEach { queryText ->
// handle queryText
}
.launchIn(uiScope)