public class CustomComponentHolder extends Object
| Constructor and Description |
|---|
CustomComponentHolder() |
| Modifier and Type | Method and Description |
|---|---|
FileDownloadConnection |
createConnection(String url) |
FileDownloadOutputStream |
createOutputStream(File file) |
int |
determineConnectionCount(int downloadId,
String url,
String path,
long totalLength) |
FileDownloadDatabase |
getDatabaseInstance() |
ForegroundServiceConfig |
getForegroundConfigInstance() |
FileDownloadHelper.IdGenerator |
getIdGeneratorInstance() |
static CustomComponentHolder |
getImpl() |
int |
getMaxNetworkThreadCount() |
boolean |
isSupportSeek() |
void |
setInitCustomMaker(DownloadMgrInitialParams.InitCustomMaker initCustomMaker) |
public static CustomComponentHolder getImpl()
public void setInitCustomMaker(DownloadMgrInitialParams.InitCustomMaker initCustomMaker)
public FileDownloadConnection createConnection(String url) throws IOException
IOExceptionpublic FileDownloadOutputStream createOutputStream(File file) throws IOException
IOExceptionpublic FileDownloadHelper.IdGenerator getIdGeneratorInstance()
public FileDownloadDatabase getDatabaseInstance()
public ForegroundServiceConfig getForegroundConfigInstance()
public int getMaxNetworkThreadCount()
public boolean isSupportSeek()