Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //onCreate application
- startKoin {
- androidContext(this@App)
- modules(appModule)
- }
- get<ConnectivityManager> { parametersOf(applicationContext) }
- //in modules
- single { androidApplication().applicationContext.getSystemService(Context.CONNECTIVITY_SERVICE) as ConnectivityManager }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement