Skip to content

Latest commit

 

History

History
35 lines (29 loc) · 838 Bytes

README-id.md

File metadata and controls

35 lines (29 loc) · 838 Bytes

RxDownloadManager

Sebuah Pembungkus Rx untuk Download Manager di Android

Penggunaan

String url = "https://upload.wikimedia.org/wikipedia/en/e/ed/Nyan_cat_250px_frame.PNG";
RxDownloader.getInstance(SampleAct.this)
            .download(url, "nyancat photo", "image/jpg") // url, filename, and mimeType
            .subscribe(path ->{
                // Do what you want with downloaded path
             }, throwable -> {
                // Handle download faile here
             });

Anda juga dapat melihat sample untuk penggunaan lengkap

Gradle

allprojects {
		repositories {
			...
			maven { url "https://jitpack.io" }
		}
}
dependencies {
	  compile 'com.github.esafirm:RxDownloader:1.0.1'
}