I'am currently using Retrofit 2 and i want to download some file from my server. Can i call back some event to catch percent complete download file to show in notification like this picture
I reference that link, but it is upload, can i do it with same problem? Link
Is it possible to show progress when using retrofit 2 library?
You can use ResponseBody
and set it to OkHttp
client and to update progress in UI you can use interface.check this link
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With