Closed ThallyssonKlein closed 7 years ago
You can get SpeedTestReport
from different callback
onDownloadFinished(SpeedTestReport report)
onDownloadProgress(float percent, SpeedTestReport report)
onUploadFinished(SpeedTestReport report)
onUploadProgress(float percent, SpeedTestReport report)
SpeedTestReport object has all information about the test at the moment the callback was triggered. Bitrate is given in BigDecimal
type for better precision, you can convert it easily to any other type including float :
float bps = report.getTransferRateBit().floatValue();
double bps = report.getTransferRateBit().doubleValue();
int bps = report.getTransferRateBit().intValue();
It works perfectly. Thank you for help me.
Hi there. I'm testing this library, and I think it amazing. But I would like to get the float Mb\s of the speed test. Somebody know to tell me if it's possible?