Hướng Dẫn Dagger-Hilt Toàn Diện (Dependency Injection) - Hướng Dẫn Android Studio

Tác giả: Philipp Lackner
Ngày xuất bản: 2022-06-19T00:00:00
Length: 34:31

Dependency injection is a core concept of software development. In this video, I'll show you how you can apply DI in an Android app using Dagger-Hilt.

⭐ Get certificates for your future job

⭐ Save countless hours of time

⭐ 100% money back guarantee for 30 days

⭐ Become a professional Android developer now:

https://pl-coding.com/premium-courses?utm_source=youtube&utm_medium=video&utm_campaign=default

💻 Let me personally review your code and provide individual feedback, so it won't backfire and cost you a fortune in future:

https://elopage.com/s/philipplackner/code-review/payment?locale=en

🎓 Become an industry-ready developer in the Mobile Dev Campus:

https://pl-coding.com/campus?utm_source=youtube&utm_medium=video&utm_campaign=default

🎁 Get my FREE 4.5h course "The Best Practice Guide to Android Architecture":

https://pl-coding.com/best-practice-guide?utm_source=youtube&utm_medium=video&utm_campaign=crypto_tracker

Read our weekly Android blog:

https://pl-coding.com/blog

Join this channel to get access to perks:

https://www.youtube.com/channel/UCKNTZMRHPLXfqlbdOI7mCkg/join

Get the code here:

https://github.com/philipplackner/DaggerHiltCourse

Join my Discord server:

https://discord.gg/cwQbmUstEu

Regular programming advice on my Instagram page: https://www.instagram.com/_philipplackner_/

Checkout my GitHub: https://github.com/philipplackner

You like my free content? Here you can buy me a coffee:

https://www.buymeacoffee.com/philipplackner

00:00 - What is dependency injection?

06:45 - Setting up Dagger-Hilt

08:25 - Setting up the structure

10:39 - Creating a module

17:20 - Injecting into ViewModels

20:15 - Injecting the ViewModel in the UI

21:40 - Creating the application class

24:05 - Two dependencies of same type

26:20 - Binding abstractions

29:58 - Field injection

31:28 - Lazy injection

Dịch Vào Lúc: 2025-03-06T00:07:39Z

Yêu cầu dịch (Một bản dịch khoảng 5 phút)

Phiên bản 3 (ổn định)

Tối ưu hóa cho một người nói. Phù hợp cho video chia sẻ kiến thức hoặc giảng dạy.

Video Đề Xuất