Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. //onCreate application
  2.  
  3. startKoin {
  4. androidContext(this@App)
  5. modules(appModule)
  6. }
  7. get<ConnectivityManager> { parametersOf(applicationContext) }
  8.  
  9.  
  10. //in modules
  11. single { androidApplication().applicationContext.getSystemService(Context.CONNECTIVITY_SERVICE) as ConnectivityManager }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement