Koin woks on simple domain specific language(DSL) model, a computer languages created for specific application domain.
In koin we have to create a module first .In this module all the dependent objects are there, then we have to load one or more modules in to koin in application class by calling start koin method. Then we can inject object wherever we want.
Here are the key term
get(): It is used inside constructors to resolve needed instances.
factory : It is used to indicate a new instance must be created
each time it is injected.single :It indicates that a unique instance will be created at
the beginning and shared on every future injection.name : It is used to name definition . This is required when we want to have multiple instances of the same class with different types
Top comments (0)