ContextHelper¶
Contexthelper is used to obtain the application and global context .
Initialize¶
The initialization of ContextHelper is performed by ToolsConfig.
class App: Application() {
override fun onCreate() {
super.onCreate()
ToolsConfig.init(this)
}
}
Get application¶
ContextHelper.getApp()
Get global context¶
ContextHelper.getAppContext()