Please login in order to report media.
In part 8 of the Dagger 2 tutorial, we will learn how to use @BindsInstance to bind variables to our dependency graph at runtime as an alternative to providing them from a stateful module.
For this, we have to declare our own @Component.Builder.
To distinguish between multiple bindings from the same type, we will use the @Named qualifier.
Watch the whole playlist:
Example code + dependencies:
Subscribe to my channel:
Want more Android tutorials? Check my playlist section:
Follow me on social media: