public interface IFileDownloadServiceProxy
| Modifier and Type | Method and Description |
|---|---|
void |
bindStartByContext(Context context) |
void |
bindStartByContext(Context context,
Runnable connectedRunnable) |
void |
clearAllTaskData() |
boolean |
clearTaskData(int id) |
long |
getSofar(int downloadId) |
byte |
getStatus(int downloadId) |
long |
getTotal(int downloadId) |
boolean |
isConnected() |
boolean |
isDownloading(String url,
String path) |
boolean |
isIdle() |
boolean |
pause(int id) |
void |
pauseAllTasks() |
boolean |
setMaxNetworkThreadCount(int count) |
boolean |
start(String url,
String path,
boolean pathAsDirectory,
int callbackProgressTimes,
int callbackProgressMinIntervalMillis,
int autoRetryTimes,
boolean forceReDownload,
FileDownloadHeader header,
boolean isWifiRequired) |
void |
startForeground(int id,
Notification notification) |
void |
stopForeground(boolean removeNotification) |
void |
unbindByContext(Context context) |
boolean start(String url, String path, boolean pathAsDirectory, int callbackProgressTimes, int callbackProgressMinIntervalMillis, int autoRetryTimes, boolean forceReDownload, FileDownloadHeader header, boolean isWifiRequired)
boolean pause(int id)
long getSofar(int downloadId)
long getTotal(int downloadId)
byte getStatus(int downloadId)
void pauseAllTasks()
boolean isIdle()
boolean isConnected()
void bindStartByContext(Context context)
void unbindByContext(Context context)
void startForeground(int id,
Notification notification)
void stopForeground(boolean removeNotification)
boolean setMaxNetworkThreadCount(int count)
boolean clearTaskData(int id)
void clearAllTaskData()