Sign in Go Pro

Dependency Injection in Android using Kodein

Tagged injections

This lesson is for PRO members.

Upgrade today to get access to all the PRO lessons.

Unlock this lesson

Up next



Support for nested bindings enhances flexibility a lot when building modular decoupled apps. But there's still a problem we need to solve. What happens when you need to bind two different implementations to the same type? On this chapter, you'll learn:

  • How to solve the bindings ambiguity using tagged bindings.
  • We'll add a couple of OkHttp Interceptors to showcase the need for it.




we have two presenters implement MainPresenterInterFace
how can I return the specify our Presenter with our condition?
Thanks in advance,

You need to go PRO to post comments.

Lessons in Dependency Injection in Android using Kodein