Join Slack
Hi! I need context in many classes other than activity or fragment. I am passing it as a method para...
# koin
d
Deepti M
04/16/2020, 10:13 PM
Hi! I need context in many classes other than activity or fragment. I am passing it as a method parameter, wherever required. But I feel, as per Koin framework, I should make app-context available at all places. For doing the same, I found
this
reference. While along with this, also found
one discussion
, which says my old implementation is correct. I AM CONFUSED 😞 Can anybody help?
https://gist.github.com/paraya3636/bf8108a75eb49323e56c0c90dd0747e0
https://discuss.kotlinlang.org/t/access-application-context-in-companion-object-in-kotlin/11054
(edited)
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by