public class DownloadManager extends BaseManager implements com.lib.IFunSDKResult, DownloadInterface
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
DownloadManager.OnDownloadListener |
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
DOWNLOAD_STATE_COMPLETE |
static int |
DOWNLOAD_STATE_COMPLETE_ALL |
static int |
DOWNLOAD_STATE_FAILED |
static int |
DOWNLOAD_STATE_PROGRESS |
static int |
DOWNLOAD_STATE_START |
static int |
DOWNLOAD_STATE_STOP |
static int |
DOWNLOAD_STATE_UNINT |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addDownload(DownloadInfo info)
添加到下载队列
|
static DownloadManager |
getInstance(DownloadManager.OnDownloadListener listener) |
boolean |
init() |
boolean |
init(java.lang.String initType) |
int |
OnFunSDKResult(android.os.Message msg,
com.lib.MsgContent ex) |
void |
startDownload()
开始下载
|
void |
stopDownload()
停止下载
|
void |
unInit() |
isInitpublic static final int DOWNLOAD_STATE_UNINT
public static final int DOWNLOAD_STATE_START
public static final int DOWNLOAD_STATE_PROGRESS
public static final int DOWNLOAD_STATE_COMPLETE
public static final int DOWNLOAD_STATE_STOP
public static final int DOWNLOAD_STATE_FAILED
public static final int DOWNLOAD_STATE_COMPLETE_ALL
public static DownloadManager getInstance(DownloadManager.OnDownloadListener listener)
public boolean init()
init 在接口中 IBaseManagerpublic boolean init(java.lang.String initType)
init 在接口中 IBaseManagerpublic void unInit()
unInit 在接口中 IBaseManagerpublic int OnFunSDKResult(android.os.Message msg,
com.lib.MsgContent ex)
OnFunSDKResult 在接口中 com.lib.IFunSDKResultpublic void addDownload(DownloadInfo info)
DownloadInterfaceaddDownload 在接口中 DownloadInterfacepublic void startDownload()
DownloadInterfacestartDownload 在接口中 DownloadInterfacepublic void stopDownload()
DownloadInterfacestopDownload 在接口中 DownloadInterface