I am using retrofit2 for making service call in my application, i need to show the progress percentage for the service call which is made using retrofit, the result of the call will be of some JSON object. we know that for downloading files we can use @Streaming
and ResponseBody
in retrofit for getting progress percent, but am unaware for the JSON response.
Example
@POST("/getdata")
fun callSomeApi(@Query("id") id : String) : Observable<Data>
Is there is any option to get progress percent for JSON response using retrofit ?
Any help