akarnokd / Rxjavaretrofitadapter
Licence: apache-2.0
RxJava 3 adapter for Retrofit 2
Stars: ✭ 97
Programming Languages
java
68154 projects - #9 most used programming language
RxJavaRetrofitAdapter
RxJava 3 adapter for Retrofit 2
Port of Retrofit/RxJava2 adapter: https://github.com/square/retrofit/tree/master/retrofit-adapters/rxjava2
dependencies {
implementation "com.github.akarnokd:rxjava3-retrofit-adapter:3.0.0"
}
Usage
import retrofit2.*;
import hu.akarnokd.rxjava3.retrofit.*;
import io.reactivex.rxjava3.core.*;
Retrofit retrofit = new Retrofit.Builder()
.baseUrl("https://example.com/")
.addCallAdapterFactory(RxJava3CallAdapterFactory.create())
.build();
interface MyService {
@GET("/user")
Observable<User> getUser();
}
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].