Request2AdapterFactory
Request2 adapter factory.
When you use Request2 as the return value of the network api.You should add Request2AdapterFactory to the Retrofit by Retrofit.Builder.addCallAdapterFactory.
// The is a example.
val retrofit = Retrofit.Builder()
.... // Other configuration.
.addCallAdapterFactory(Request2AdapterFactory())
.build()
Content copied to clipboard
Since
0.5.1
Functions
Link copied to clipboard
open operator override fun get(returnType: Type, annotations: Array<Annotation>, retrofit: Retrofit): CallAdapter<*, *>?