viewmodelprovidder codelab code example
Example 1: ViewModelFactory code room codelabs\
class ScoreViewModelFactory(private val finalScore: Int) : ViewModelProvider.Factory {
}
Example 2: ViewModelFactory code room codelabs\
viewModel = ViewModelProviders.of(this, viewModelFactory)
.get(ScoreViewModel::class.java)