我想使用RxAndroid和RxJava,但我有点困惑哪些下面提到的库我应该使用? 在一些教程它们使用例如以下类其可在哪个库我应该使用RxAndroid和RxJava
compile 'io.reactivex:rxandroid:1.2.1'
compile 'io.reactivex:rxjava:1.1.9'
.subscribe(new Subscriber<String>)
和一些教程哎使用例如它们使用下列类,其是可以在以下的lib
compile 'io.reactivex.rxjava2:rxjava:2.0.1'
compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
.subscribe(new Observer<String>)
moreover, in this lib there is no "Unsubscribe()" method??!!
和在观察者类有一些所谓的一次性类
这不Subscriber类存在
此外, 请让我知道我应该使用哪一个?
库:
compile 'io.reactivex:rxandroid:1.2.1'
compile 'io.reactivex:rxjava:1.1.9'
compile 'io.reactivex.rxjava2:rxjava:2.0.1'
compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
https://github.com/ReactiveX/RxJava/wiki/What's-different-in-2.0。您可以使用Disposable并调用dispose()。 – Raghunandan