DataSourceCallAdapterFactory

class DataSourceCallAdapterFactory : CallAdapter.Factory

Author

skydoves (Jaewoong Eum)

DataSourceCallAdapterFactory is an call adapter factory for creating DataSource.

Adding this class to Retrofit allows you to return on DataSource from service method.

@GET("DisneyPosters.json")
fun fetchDisneyPosterList(): DataSource<List<Poster>>

Types

Link copied to clipboard
object Companion

Functions

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