public class DownloadServiceNotConnectedHelper extends Object
| Constructor and Description |
|---|
DownloadServiceNotConnectedHelper() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
clearAllTaskData() |
static boolean |
clearTaskData(int id) |
static long |
getSofar(int id) |
static byte |
getStatus(int id) |
static long |
getTotal(int id) |
static boolean |
isDownloading(String url,
String path) |
static boolean |
isIdle() |
static boolean |
pause(int id) |
static void |
pauseAllTasks() |
static boolean |
setMaxNetworkThreadCount(int count) |
static boolean |
start(String url,
String path,
boolean pathAsDirectory) |
static void |
startForeground(int notificationId,
Notification notification) |
static void |
stopForeground(boolean removeNotification) |
public static boolean pause(int id)
public static long getSofar(int id)
public static long getTotal(int id)
public static byte getStatus(int id)
public static void pauseAllTasks()
public static boolean isIdle()
public static void startForeground(int notificationId,
Notification notification)
public static void stopForeground(boolean removeNotification)
public static boolean setMaxNetworkThreadCount(int count)
public static boolean clearTaskData(int id)
public static boolean clearAllTaskData()