Created
November 29, 2020 20:01
-
-
Save Shivamdhuria/d1f6964a9b7d1afb66d76bd249efef6e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
search.addTextChangedListener { | |
viewModel.setSearchQuery(it.toString()) | |
} | |
lifecycleScope.launch { | |
viewModel.networkOperationResult.collect { value -> | |
textView.append(value) | |
textView.append("\n") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment