Join Slack
could someone explain what use case we face when we will to use ViewModelFactory and pass the ViewMo...
# android
m
mending3
10/24/2019, 11:02 AM
could someone explain what use case we face when we will to use ViewModelFactory and pass the ViewModelFactory to the second argument of
ViewModelProviders.of()
?
p
pitpit
10/24/2019, 11:52 AM
use case when you want to send parameters into the viewmodel's constructor. So you must use a Factory
m
mending3
10/24/2019, 1:42 PM
ok i get it now thank you
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by