ContextProvider
Kotlin Android object for global applicationContext
Usage
In your Aplication class
class YourApp : Application() {
override fun onCreate() {
super.onCreate()
//
// ! Provider initialize
ContextProvider.context = applicationContext
}
}
Get and fun
ContextProvider.context