Hello I would like to do the following with koin (...
# koin-contributors
m
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 ­čÖç
I've tried some stuff with
scopes
and
ScopedActivity
but there are no concrete examples that i can refer for this ­čś×
p
make sure you read the official documentation before posting; there is a section for passing value to inject: https://insert-koin.io/docs/reference/koin-core/injection-parameters#passing-values-to-inject