-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Initialization
Jacksgong edited this page May 19, 2018
·
43 revisions
FileDownloader is installed by adding the following dependency to your build.gradle file:
dependencies {
implementation 'com.liulishuo.filedownloader:library:1.7.4'
}
If you want to register your own customize components for FileDownloader please invoking FileDownloader.setupOnApplicationOnCreate(application):InitCustomMaker
on the Application#onCreate
, otherwise you just need invoke FileDownloader.setup(Context)
anytime before using FileDownloader.
-
不用担心
setup
方法并不会做多余的事,只会缓存相关变量: DO NOT worry about the work onsetupOnApplicationOnCreate
orsetup
because we just use this method to holdApplicationContext
andInitCustomMaker
- Initialization
- Start downloading
- Pause or Stop
- Get the internal stored data
- Customizable Component
- Interface