In this codelab you will learn about interfaces and DI

What it used for

Interfaces are used for:

Dependency injection are used for

What are they use for

Manual

Service locator

Dagger

A google di framework that helps inject dependentis
in android we can use Android

it has component, Module
please look at:Using Dagger in Android apps

Hilt

Hilt is a di framework base on Dagger but already have all the componnents needed for android

please look at:Dependency injection with Hilt

Koin

Koin is a di framework in kotlin

It have Modules that contains single, factory

We get the dependency by using the "by inject()" delagate function

please look at:Koin in android

return to main