Last active
October 18, 2020 09:49
-
-
Save makorowy/adb6f3b40d2540626927b19a4e672637 to your computer and use it in GitHub Desktop.
Example of not handling interactions via ViewModel, part 3
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
object RepositoryData | |
class Repository { | |
fun observeChanges(observer: (RepositoryData) -> Unit) { | |
//some logic | |
observer.invoke(RepositoryData) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment