Last active
November 27, 2019 19:17
-
-
Save Zhuinden/fb0ebe1e114d94a642be836ad94b11c4 to your computer and use it in GitHub Desktop.
Anemic Repository 1
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
class MyFragment: Fragment(), MyView.Listener { | |
override fun onViewCreated(view: View, savedInstanceState: Bundle?) { | |
super.onViewCreated(view, savedInstanceState) | |
myView.listener = this | |
} | |
override fun onDestroyView() { | |
super.onDestroyView() | |
myView.listener = null | |
} | |
override fun onButtonPressed() { ... } | |
override fun onTextChanged(text: String) { ... } | |
override fun onCheckBoxTicked() { ... } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment