leosan
05/03/2018, 11:37 AMclass Foo(view:ViewFoo)
And a Kodein.Lazy with this binding
bind<Foo>() with scopedSingleton(androidFragmentScope) {
Foo(it)
}
and on my `MyFragment(), ViewFoo`I’m retrieving like this
val foo by kodein.with(this).instance<Foo>()
But then it throws this error
No factory found for bind<Foo>() with ? { MyFragment -> ? }
Registered in Kodein:
bind<Foo>() with scopedSingleton(androidFragmentScope) { Fragment -> Foo }
Andreas Sinz
05/03/2018, 11:43 AMwith(this as Fragment)
?leosan
05/03/2018, 11:46 AMleosan
05/03/2018, 11:46 AMleosan
05/03/2018, 11:48 AMNo factory found for bind<Foo>() with ? { Fragment -> ? }
leosan
05/03/2018, 11:49 AMleosan
05/03/2018, 11:49 AMleosan
05/03/2018, 11:50 AMandroid.app.Fragment
Andreas Sinz
05/03/2018, 11:50 AMAndreas Sinz
05/03/2018, 11:51 AMandroidSupportFragmentScope
leosan
05/03/2018, 11:52 AM