Created
May 23, 2020 09:50
-
-
Save deepanshu42/6edd4b2e6efcc6099cfca3aaab4c808c to your computer and use it in GitHub Desktop.
Room with LiveData Example
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
| @Dao | |
| interface UserDao { | |
| @Query("SELECT * FROM users") | |
| fun getAllLiveData(): LiveData<List<User>> | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment