Singleton

Report a typo

Write code using constructor DSL that declares the SingletonComponent class as a Koin component:

class SingletonComponent { ... }

Each time we want to inject this component, Koin injects the same instance:

val appModule = module {
    // your code here
}
Enter a short text
___

Create a free account to access the full topic