Last active
January 7, 2019 19:39
-
-
Save igorwojda/13267128ae224f33dca08ac4659d9082 to your computer and use it in GitHub Desktop.
Classic ViewModel
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
class RegisterActivity : AppCompatActivity() { | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
val viewModel = ViewModelProviders.of(this).get(RegisterViewModel::class.java) | |
//..observe live steams exposed by view model | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment