Skip to content

Latest commit

 

History

History
49 lines (36 loc) · 1.1 KB

README.md

File metadata and controls

49 lines (36 loc) · 1.1 KB

Internet Speed Testing Library

This library base on https://github.com/bertrandmartel/speed-test-lib

To include in your project, add this to your build.gradle file:

//build.gradle [project module]

allprojects {
    repositories {
        jcenter()
        maven { url "https://jitpack.io" }
    }
}
//build.gradle [app module]

implementation 'com.github.oatrice:internet-speed-testing:1.0.1'

Demo

Usage

InternetSpeedBuilder builder = new InternetSpeedBuilder(this);
builder.setOnEventInternetSpeedListener(new InternetSpeedBuilder.OnEventInternetSpeedListener() {
    @Override
    public void onDownloadProgress(int count, ProgressionModel progressModel) {

    }

    @Override
    public void onUploadProgress(int count, ProgressionModel progressModel) {

    }

    @Override
    public void onTotalProgress(int count, ProgressionModel progressModel) {
        adapter.setDataList(count, progressModel);

    }
});
builder.start("http://2.testdebit.info/fichiers/1Mo.dat", 2);

Contributing

Suggestions and pull requests are highly encouraged.