Skip to main content

ProgressRequestBody

class ProgressRequestBody

Description: Request body progress listener

/**
* progress listener for file pass
*/
public interface ProgressListener {
/**
* showing progress status
* @param bytesWritten bytes written of file
* @param contentLength total length of file
* @param speed speed of transmission file
*/
void onProgress(long bytesWritten, long contentLength, long speed);
void onFailed(String message);
}