Android Clean

From bibbleWiki
Revision as of 04:15, 10 February 2022 by Iwiseman (talk | contribs) (Completable)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Notes to sort out

@SUPPRESS

This suppresses the depreciation at compile time

    @Suppress("DEPRECATION")
    val isConnected: Boolean
        get() = (context.getSystemService(Context.CONNECTIVITY_SERVICE) as? ConnectivityManager)?.run {

Dependency Injection

This example shows use of DI. A brief reminder of Dagger.

  • @Provider, a service
  • @Module, group of providers
  • @Component, group of modules