Android Clean

From bibbleWiki
Revision as of 22:10, 30 January 2021 by Iwiseman (talk | contribs) (@SUPPRESS)
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 {

Completable

Because we are using java we have 3 types of observables,

  • Completables
  • Singles
  • Maybes

This restricts the functions we need to implement.