This is almost what I want:
"Any Activity or Fragment can use directly the scope API: createScope(), getScope() and deleteScope()"
Except I want to use it in the module DSL.
a
arnaud.giuliani
02/19/2019, 12:43 PM
inside scoped definition lambda, you can use
getCurrentScope()
k
kenkyee
02/19/2019, 8:23 PM
thanks! 🙂
kenkyee
02/19/2019, 8:24 PM
one more question...if you're bindScope'ing in an Activity, does it deleteScope() automatically or do you have to do it in the onDestroy() of the Activity?
a
arnaud.giuliani
02/20/2019, 8:42 AM
bindScope follow your activity lifecycle - destroyed on onDestroy