Created
September 3, 2018 21:08
-
-
Save nhaarman/9fe6465cca5c8a109ac9b94cc04e11a0 to your computer and use it in GitHub Desktop.
A very simple contract for a screen in a mobile application.
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
interface Screen<V : Container> { | |
fun onStart() {} | |
fun attach(v: V) {} | |
fun detach(v: V) {} | |
fun onStop() {} | |
fun onDestroy() {} | |
fun saveInstanceState(): SavedState | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment