https://kotlinlang.org logo
#koin
Title
# koin
v

Vivek Modi

01/10/2022, 3:46 PM
Hey I am injecting work manager
Copy code
val workerModule = module {
    // worker definition
    worker { SimpleWorker(get(), get(), get()) }
}
so when startKoin
Copy code
startKoin {
    androidLogger(Level.ERROR)
    androidContext(appContext)
    modules(
        listOf(
            workerModule
        )
    )
}
Do I need to add
wokerModule
in
modules
? and what is the use case
workManagerFactory()
?
Copy code
startKoin {
            androidLogger(Level.ERROR)
            androidContext(appContext)
            modules(
                listOf(
                    workerModule
                )
            )
            workManagerFactory()
 }