Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/esafirm/RxDownloader
An Rx wrapper for Download Manager in Android
https://github.com/esafirm/RxDownloader
downloadmanager rx-wrapper
Last synced: about 1 month ago
JSON representation
An Rx wrapper for Download Manager in Android
- Host: GitHub
- URL: https://github.com/esafirm/RxDownloader
- Owner: esafirm
- License: mit
- Created: 2015-10-29T08:41:42.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-07-11T09:00:14.000Z (over 6 years ago)
- Last Synced: 2024-08-02T20:45:44.120Z (4 months ago)
- Topics: downloadmanager, rx-wrapper
- Language: Java
- Homepage:
- Size: 520 KB
- Stars: 108
- Watchers: 8
- Forks: 32
- Open Issues: 10
-
Metadata Files:
- Readme: README-id.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-indo-projects - RxDownloader - An Rx wrapper for Download Manager in Android. (Android)
- awesome-indonesia-repo - RxDownloader - An Rx wrapper for Download Manager in Android. (Android)
README
## RxDownloadManager
Sebuah Pembungkus Rx untuk Download Manager di Android![](https://raw.githubusercontent.com/esafirm/RxDownloader/master/art/sample.gif)
### Penggunaan
```java
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
```groovy
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
``````groovy
dependencies {
compile 'com.github.esafirm:RxDownloader:1.0.1'
}
```