queryTextEvents

Create a InitialValueFlow of query text events on the SearchView instance where the value emitted is one of the 2 event types: QueryTextEvent.QueryChanged, QueryTextEvent.QuerySubmitted

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.queryTextEvents()
.onEach { queryTextEvent ->
// handle search view query text cha
}
.launchIn(uiScope)