Skip to content

Using a ViewModel Factory can be helpful when you need to provide additional parameters to the ViewModel that cannot be easily obtained from the default ViewModel constructor, such as a database instance or a network service.

License

Notifications You must be signed in to change notification settings

VaibhavMojidra/Android-Java---Demo-2-View-Model-Factory

Repository files navigation

Android Java Demo 2 View Model Factory

Using a ViewModel Factory can be helpful when you need to provide additional parameters to the ViewModel that cannot be easily obtained from the default ViewModel constructor, such as a database instance or a network service.

ViewModelFactory is use to initialize the ViewModel


Vaibhav Mojidra - 1.jpeg

Vaibhav Mojidra - 2.jpeg

Vaibhav Mojidra - 3.jpeg

About

Using a ViewModel Factory can be helpful when you need to provide additional parameters to the ViewModel that cannot be easily obtained from the default ViewModel constructor, such as a database instance or a network service.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages