-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Open customize component
Jacksgong edited this page Jan 5, 2017
·
2 revisions
From now on, FileDownloader support following components to be customized by yourself:
Name | Interface | Default Impl |
---|---|---|
Connection | FileDownloadConnection | FileDownloadUrlConnection |
OutputStream | FileDownloadOutputStream | FileDownloadRandomAccessFile |
Database | FileDownloadDatabase | DefaultDatabaseImpl |
If you want to use okhttp as your connection component, the simplest way is this repo.
- Initialization
- Start downloading
- Pause or Stop
- Get the internal stored data
- Customizable Component
- Interface