Fragmented - Android Developer Podcast cover image

246 - Dependency Injection: Kotlin Inject with Fred Porciúncula

Fragmented - Android Developer Podcast

00:00

How to Use Dagger to Inject Dependencies Into Your Graph

Kotlin-ject does not use constructor injection. Instead, you have to do the regular way of getting a dependency from the graph. You get your component and then you call a method or a var from your component that exposes the type we want. So it also needs to be a var. There's so many ugly things involved there that actually, when I used Dagger a long time ago, I would always avoid dealing with this.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app