DataSourceCallAdapterFactory
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>>
Content copied to clipboard