HILT Field Injection and Constructor Injection
Вставка
- Опубліковано 5 лип 2020
- The best android courses in the world: codingwithmitch.com/
Watch the HILT course here (FREE): codingwithmitch.com/courses/h...
In this video I go over the two types of dependency injection with Hilt dagger2 for android:
1) Field Injection
2) Constructor Injection
Instagram: / codingwithmitch
Twitter: / mitch_tabian
.
.
#AndroidDev - Наука та технологія
Thanks Mitch! It's incredible how you manage to explain hard concepts in a such a simple way and with friendly examples. I'm learning a lot with your videos. keep it up.
I watch your courses in your site AND I come here to press the like button too; because you're AWESOME!
Really clear and concise lesson on field and constructor injection! Really useful even without the additional juicy hilt stuff! thanks dude
Your videos are amazing!!!
Not only the content is super relevant, but you're awesome at teaching. You can think about every type of person that can be watching and say something relevant to each one and that's just incredible. I wish you the best :)
The speaking speed fast and furious! love it! again! Thank you!!
Love your vids and CodingInFlow's but one of the main differences for me is that your voice doesn't put me to sleep. Lol
great job by the way, your content has saved lifes and helped a whole bunch, i know you hear this often, but thanks man. God bless
Once again, a great tutorial !!
Thanks Mitch!!! Great content! Subscribed
Awesome video thank you Mitch !
This was really helpful! Thanks!
Thanks. Cleared it up for me
watching at 1.5 speed, this knowledge is great
You are again perfect. Thank you
If I go to the android documentation I understand nothing, when I see yout videos I understand everything :)
Ты лучший блогер. Спасибо
Thanks for share it us.
Thank you very much great video easy to understand
Finally you are here 😁😁
The third way in methods injection and it's good referring the hole object into another one
thank you for the fluency of the content ":)
well explained!
That concept, so pretty simple to be understood::clap::
crystal clear!
did you mean "ME"
Very helpful thanks
Watching at 0.75x
Full fill my requirements!
😂
Woow 🙌🏻
Amazing content.. Can you please share the implementation of field injection for a custom class.
Very fast 😂❤️
So Mitch quick question. Do dependency injection save time by using the something instance of the class. Because am not seeing you create any objects of the classes
Great video but he should also talk about setter injection. It's much better than field injection
In the case of constructor injection, if I want to pass some transitive dependencies like integer or boolean, how would I do that?
Great video, can you please do a vídeo about creating dagger modules? That's will amazing for learning.
Tanks a lot for the video.
Yep that will be in this short course also
hey mitch, what os and system config you have in your device? looking to buying a pc/laptop that has sufficient specs to run android studio , emulator and chrome simultaneously
There is also Method Injection
Thanks for the Video. I have a question: What if I have a class user which consists of 'primitive types' like userName and password, which is of the type String. These strings come from a textview, how can I use constructor injection here?
Doubt: How were you able to do constructor injection for a class that has no @AndroidEntryPoint ,cuz this annotation basically makes the class eligible for dependency injection,im new to programing
Sir Ji
Please Put Kind Of Part 1,2,3, and soo on also
Thanks
5:04 Ok i trust you.
making those dependencies without hilt will work right? why use hilt? I don't understand the benefits
hi mitch .. i cant access this course on your site. the video is'nt displaying
can I do this in C#? Is there a comprable feature?
Assalom-u alaykum
Can you explain how to inject a interfere which takes a generic parameter
For example
Interface State {}
How will I inject it? How to pass this generic E?
your videos are really nice but please use dark mode my eyes hurt a lot please it's a humble request.
That was fast!!!
hi how to implement DI in someclass
It just looks like spring IOC😄
Engagement!
Engage the engines to 100k
Woah. When I stopped watching Mitch's videos, he was using Java. Now I return and I see Kotlin. Wow, Boomer doing Zoomer stuff. Noiceee 😂😂 (No offense man.)
I'm a millenial
someClazz
sorry I changed the number of likes from cool 911 to 912
Would someone please just show a straightforward example of what I assume is constructor injection?
Why can't we have just 2 annotations?
@provide with an identifier and @Inject with an identifier.
put files in scoped modules or whatever but fuck why use @Inject everything it's confusing...
Its fucking embarrassing!
I am writing my own goddamn library.
Again Scaring me .do u have prove he likes me.