Request2AdapterFactory

class Request2AdapterFactory : CallAdapter.Factory

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()

Since

0.5.1

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open operator override fun get(returnType: Type, annotations: Array<Annotation>, retrofit: Retrofit): CallAdapter<*, *>?