Details
-
Type:
New Project
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Labels:None
-
Group Id:tech.thdev
-
Project URL:
-
Already Synced to Central:No
Description
The FlowCallAdapterFactory is Retrofit CallAdapter.Factory.
- Can use coroutine flow.
- example
val retrofit = Retrofit.Builder() .baseUrl(server.url("/")) .addConverterFactory(StringConverterFactory()) .addCallAdapterFactory(FlowCallAdapterFactory()) .build() val service = retrofit.create(Service::class.java)