0

I'am currently using Retrofit 2 and i want to fetch JSON File from server. Is it possible to show progress when using retrofit 2 library?

@Streaming
@GET("trains.json")
suspend fun  trains(): Response<Trains>
  • 2
    You may [add an interceptor](https://stackoverflow.com/questions/42118924/android-retrofit-download-progress) to keep track of the progress if necessary. – Enowneb Jan 30 '23 at 07:31

0 Answers0