Android ViewModel Factory Tutorial - Architecture Component Hindi- CheezyCode #4

preview_player
Показать описание
Learn about Android ViewModelFactory Jetpack Component in Hindi For Beginners. This video covers what is ViewModelFactory, what is the need of viewmodelfactory? ViewModelProvider class is used to create viewmodels in Android. Since it takes lifecycle owner for ViewModel. Thus we do not have control over the ViewModel creation part.

To create view models that take arguments we need ViewModelFactory which then creates the instance of parameterized view model instance. Learn the basics of view model factory with example in this simple android video.

This is how we implement factory pattern in view models creation. These components help in writing clean code and help in following clean architecture in android. Learn all this about Android in Hindi by creating small projects. Everything is explained in Hindi (हिंदी में )

Topics Covered -
1. Need of ViewModelFactory
2. Simple Example of ViewModelFactory
3. Use ViewModelFactory with ViewModelProvider

Beginner series in Android Playlist (Hindi) -

Kotlin Beginners Tutorial Series -

Java Beginners Tutorial Series -

For more info - visit the below link

We are social. Follow us at -
Рекомендации по теме
Комментарии
Автор

As of now, no is in the market like you. Your rap at the last is also amazing.

MrNobody-vxbn
Автор

bhai tu kha tha yrrr, main chutiyon ki tarah english courses follow kr rha tha pr, jab aapne samjhaya to sb samajh m aagya.
literally mere aankhon m khushi k aansu h, itna frustrated tha in sb concepts se.

love you yarr

OmPandey-iv
Автор

Sir, thank you so much for your amazing videos. I can now understand each and every concept very easily. Please keep making videos and help people understand concept in a more easy way 🙂

darshanavarma
Автор

i have a question, your concept are so clear, are you employee of any company as android app developer or your have your own company or love to teach others .

Maham-gd
Автор

2:56 No option for implement methods of ViewModelProvider.Factory in my case > This error occurs


even my JVM Target is 1.8 is build.gradle file

muhammadwaleedijaz
Автор

Thank you sir, for this amazing series of lectures. Everything so nicely explained.🙂

shashankkumar
Автор

Well done man I was stuck on this concept it helped me

krishparekh
Автор

We can actually use Hilt or dagger (dependency injection) for that because in ViewModalFactory we can write some unwanted boilerPlate code to do that same funtionality in dependency injection. Great Tutorial !

small suggestion

increase your video size to explain things briefly like alternative way to do that thing ex: ViewModalFactory With Hilt

Suggestion apart Great Tutorial nicely Explaned!

Thank You!!

mubaraknative
Автор

Cha gaya guru. you r most demanding when it comes to youtube channel for android app development. I will give your channel 4 star out of 5. I have one question regarding viewModel factory. The question is when we rotate screen, will create method being overridden in ViewModelFactory will be called?. I think it won't because if create method will be called new instance of your ViewModel will be create. Pls correct if I am wrong.

RahulYadav-vswd
Автор

भाई बहुत सारे concept clear हो रहे हैं

rohitjakhar
Автор

Thnak You So Much your amazing videos.

hitendrasinhrathod
Автор

You guys are doing great work, keep it up.

NayaVlogger
Автор

sir apke video se bht ache se smj aajata h really thank you sir for this ....or video upload kro sir local
database ke uper

sagarpaliwal
Автор

Thank you sir, I loved the way you presented. You made me to understand the concept, Thank you sir

samirmishra
Автор

can not get implemented members of ViewModelFactory, any idea why. Everyother thing is working fine in ViewModel

BtrmaAbhishekVerma
Автор

is it good idea to have single viewModel for multiple screens(fragments)?

ziyauddinansari
Автор

Best...👍👍....How can we Use retrofit in view model?

rushikeshthak
Автор

What is the need of passing parameters when we can use internal variables to get and set values ?

HMANSHU
Автор

hi can you suggest some site to get trending or funny video list API to integrate in my android application.Thanks in advance

vishalg
Автор

We can pass parameters in methods in VM class then why to pass params in Constructor?

my_love_sanatan
welcome to shbcf.ru