Use RxAndroid or RxKotlin when programming in Kotlin for Android? [closed]
Asked Answered
P

1

36

I am going to start using reactive programming in my Android project. I am using Kotlin as primary language and now I would like to apply Rx. My first choice was RxAndroid but then I noticed that there is RxKotlin.

As far as I know both are forked from RxJava so RxAndroid probably provides some API for android common tasks. On the other hand RxKotlin support lambas out of the box and allow me avoiding mixing kotlin with java.

Which one is preferred library in that case?

Panamerican answered 17/11, 2014 at 8:46 Comment(1)
Downvoters, please write what is wrong with my question? I will improve it if necessary.Panamerican
M
45

You could use both of them. RxKotlin contains an extension functions that provides to you idiomatic way(with writing less code) of using rxJava in Kotlin. rxAndroid(is now split in few libraries) provides specific platform bindings such as:

There are few more useful libraries for rxJava and Android you could be interested.

Edited 01.04.16

Messalina answered 17/11, 2014 at 9:6 Comment(2)
@Stone thanks for answer. Could you please write a little bit more about those rxkotlin advantages? RxKotlin wiki is very poor.Panamerican
@DamianPetla the entire rxkotlin library is convenience utility extension functions.Babin

© 2022 - 2024 — McMap. All rights reserved.