Last active
August 15, 2019 09:11
-
-
Save yashprakash13/77d1f7f868908ba5c0d8079ea355d6ce to your computer and use it in GitHub Desktop.
ViewModel.kt
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
@WorkerThread | |
fun search(desc : String) : LiveData<List<DataClass>>{ | |
return myDao.getSearchResults(desc) | |
} |
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
fun searchForItems(desc: String) : LiveData<List<DataClass>> { | |
return repository.search(desc) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment