Created
May 19, 2017 09:09
-
-
Save tunitowen/908d08f44167ab53314bdf23b4c7b107 to your computer and use it in GitHub Desktop.
Room-GettingStarted-GetData
This file contains hidden or 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 registerAllPersonListener() { | |
MyApp.database?.personDao()?.getAllPeople() | |
?.subscribeOn(Schedulers.io()) | |
?.observeOn(AndroidSchedulers.mainThread()) | |
?.subscribe { listOfPeople -> | |
view.personTableUpdated(listOfPeople) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment