Skip to content

Glossary: Android with Jetpack Compose

dependency injection

Also written: DI

Handing an object the parts it needs, such as OrderViewModel's API and DAO, through its constructor instead of letting it build them. That lets a test pass in a fake.

Where the book teaches it

Related terms

HiltViewModel