NetworkUtils
object NetworkUtils
Author: @Jeluchu
Save response body to specific file with progressing callback saveResponseBodyToFile @param filePath Path of file that store the response body saveResponseBodyToFile @param responseBody Response body from network call saveResponseBodyToFile @param progress Progressing percent callback
Functions
Link copied to clipboard
fun saveResponseBodyToFile(filePath: String, responseBody: ResponseBody, progress: (percent: Long) -> Unit)