Assisted Injection With Dagger and Hilt

Learn what assisted injection is used for, how it works, and how you can add it to your app with Dagger’s new built-in support for the feature. By Massimo Carli.

Leave a rating/review
Download materials
Save for later
Share
You are currently viewing page 5 of 5 of this article. Click here to view the first page.

Where to Go From Here?

If you want to see the final version of the AssistedGallery app, download the project by clicking the Download Materials button at the top or bottom of this tutorial.

Great job completing the tutorial! You learned what assisted injection is and how to implement it using AutoFactory and the Dagger/Hilt implementation added in version 2.31. You also learned how to use assisted injection with the ViewModel architecture component.

To learn more about dependency injection with Hilt, check out the Dependency Injection with Hilt: Fundamentals video course, and the Dagger By Tutorials book.

We hope you enjoyed this tutorial. If you have any questions or comments, please join the forum discussion below!