Hello I would like to do the following with koin ( for android ) and any help would be really helpful..
Copy code
class Navigator(fragmentManager:FragmentManager{
//some specific logic using fragmentManager
}
class NavigatorTaker(navigator:Navigator){
fun test(){
navigator.someFunction()
}
}
class VIewModdel(vall navigatorTaker:NavigatorTaker){
fun onLoad(){
navigatorTaker.test()
}
}
I cannoot just create my module like below:
Copy code
module {
single<Navigator>(????how to provide the fragmentManager here as its available with my activity)
single<NavigatorTaker>(get())
viewmodel {.VIewModdel(get()) }
}
did anyone has already managed to tackle this issue... any help would be highly useful for me 🙇
Manikanta G
06/18/2021, 6:17 PM
I've tried some stuff with
scopes
and
ScopedActivity
but there are no concrete examples that i can refer for this 😞