Sign in Go Pro

Dependency Injection in Android using Kodein

Injecting Navigation

This lesson is for PRO members.

Upgrade today to get access to all the PRO lessons.

Unlock this lesson

Up next



We've been hiding a bit how to perform navigation in a decoupled way until now. In this lesson we will learn:
* How to create a Navigator to pull out navigation logics from ViewModels to their own entity.
* How to inject Navigator on view models.
* How to override Android context depending on the scope so we can always inject the closest scope Context available. You'll automagically get Application Context provided at an application level, and the Activity one when you're in an Activity scope.




Hi Jorge, Excellent videos and great explanation on how to use Kodein in the app. I am wondering if there is an example or a way to use Dagger2 like multibindings - intoSet / intoMap? It will be great if you have a sample project that I can look into. Thanks.

You need to go PRO to post comments.

Lessons in Dependency Injection in Android using Kodein