Android Clean: Difference between revisions
Jump to navigation
Jump to search
Created page with "=Notes to sort out= ==@SUPPRESS== This suppresses the depreciation at compile time <syntaxhighlight "kotlin"> @Suppress("DEPRECATION") val isConnected: Boolean..." |
|||
Line 8: | Line 8: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==Completable== | |||
Because we are using java we have 3 types of observables, | |||
*Completables | |||
*Singles | |||
*Maybes | |||
This restricts the functions we need to implement. |
Revision as of 22:10, 30 January 2021
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.