Dagger 2 Deep Dive (23/55) - Dagger codegen: Binds, Provides, and module types

Опубликовано: 16 Октябрь 2024
на канале: Brandon Gogetap
176
4

In this lesson, we go over the @Binds and @Provides annotations, and how the generated code changes depending on which one you use. They can be functionally equivalent, but knowing how Dagger handles your Module declarations is important as it can help you write Modules that will lead to more efficient generated code.

TLDR: Use @Binds whenever possible.

This video is part of a series. See the full playlist here:    • Dagger 2 Deep Dive