Dagger 2 Tutorial Part 8 - @COMPONENT.BUILDER, @BINDSINSTANCE & @NAMED - Android Studio Tutorial

Please login in order to report media.

  • Uploaded 9 months ago in the category How to programming

    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:
    https://www.youtube.com/playlist?list=PLrnPJCHvNZuA2ioi4soDZKz8euUQnJW65

    Example code + dependencies:
    https://codinginflow.com/tutorials/android/dagger-2/part-8-component-builder-bindsinstance-named

    ____________________
    Subscribe to my channel:
    https://www.youtube.com/c/codinginflow?sub_confirmation=1

    Want more Android tutorials? Check my playlist section:
    https://www.youtube.com/c/codinginflow/playlists


    Follow me on social media:

    Facebook:
    https://www.facebook.com/codinginflow

    Instagram:
    https://www.instagram.com/codinginflow

    Twitter:
    https://twitter.com/codinginflow

    Blog:
    https://codinginflow.com/

  • dagger2tutorialpart8componentbuilderbindsinstance&namedandroidstudio