Android Dependency Injection with Dagger 2 and Kotlin

Go to class
Write Review

Free Online Course: Android Dependency Injection with Dagger 2 and Kotlin provided by LinkedIn Learning is a comprehensive online course, which lasts for 1-2 hours worth of material. The course is taught in English and is free of charge. Upon completion of the course, you can receive an e-certificate from LinkedIn Learning. Android Dependency Injection with Dagger 2 and Kotlin is taught by G. Blake Meike.

Overview
  • Learn how to use Dagger, the dependency injection framework, and Kotlin, the Android-specific programming language, to create cleaner code that requires less debugging.

Syllabus
  • Introduction

    • Improve dependency injection with Dagger
    • What you should know
    • Using the exercise files
    1. Basics
    • What is Dagger?
    • Why use Dagger?
    • Setting up a Dagger project
    2. Essential Dagger
    • Building the graph with @Inject and @Component
    • Introducing Dagger
    • Method and field injection
    • Lazy and provider injection
    3. Modules
    • When Dagger can't figure it out: @Modules and @Binds
    • When it's complicated: @Provides
    • When types are not enough: @Named
    • Multibinding: Sets
    • Multibinding: Maps with simple keys
    • Real-world example: Architecture components #1
    • Real-world example: Architecture components #2
    • Real-world example: Architecture components #3
    • Multibinding: Maps with complex keys
    • Real-world example: Architecture components solved
    4. Components
    • @Components review
    • Extending the builder with @Component.Builder and @BindsInstance
    • @Component dependencies
    • Introducing @Subcomponents
    • @Subcomponents review
    • Extending the subcomponent builder
    5. Scope
    • Rethinking the graph
    • @Singletons and @Reuseable
    • Custom @Scope
    Conclusion
    • Next steps