Created
December 20, 2020 18:16
-
-
Save andreyfomenkov/bdf66f3cdee586aa253423857fa48e6e to your computer and use it in GitHub Desktop.
Leaked subscription
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class WeatherActivity : AppCompatActivity() { | |
private val thermometer = Thermometer.getInstance() | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
thermometer | |
.observeTemperature() | |
.subscribe { celsius -> /* Display in a TextView */ } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment