Computer scienceProgramming languagesKotlinAdditional instrumentsAdditional librariesDependency injection tools

Koin annotations

Retrieving parameters

Report a typo

Write a code that declares the Repository class as a Koin component:

class Repository(val storage: Storage)

Please declare it using annotations to ensure a single instance and indicate that the dependency will be passed to the graph when resolving it.

Enter a short text
___

Create a free account to access the full topic