February 2018
Intermediate to advanced
350 pages
7h 35m
English
RxKotlin revolves around the Observable type that represents a system of real-life events and data, intended for push mechanisms, thus it is lazy and can be used in both ways—synchronously and asynchronously.
It'll be easier for us to understand if we start with a simple example that works with a list of data:
fun main(args: Array<String>) {
var list:List<Any> = listOf(1, "Two", 3, "Four", "Five", 5.5f) // 1
var iterator = list.iterator() // 2
while (iterator.hasNext()) { // 3
println(iterator.next()) // Prints each element 4
}
}
The output is as follows:

Let's go through the program ...
Read now
Unlock full access