Last active
December 22, 2017 13:56
-
-
Save Zhuinden/ec51c0fb934cf6a358f15f0716cbf925 to your computer and use it in GitHub Desktop.
Monarchy article: RealmResults
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
RealmResults<Task> tasksSortedByDate = realm.where(Task.class) | |
.findAllSorted(TaskFields.DATE, Sort.ASCENDING); | |
tasksSortedByDate.addChangeListener((newTasks) -> { | |
adapter.updateData(newTasks); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment