public interface DownloadMethods
File description:
Creator: Adroll
Created date: 11/30/20
* * * * * * * * * * * * * * * * * * * * * Thinking is more important than coding * * * * * * * * * * * * * * * * * * * * * *
| 限定符和类型 | 方法和说明 |
|---|---|
void |
backgroundDownload()
静默下载
|
void |
cancel()
暂停下载
|
void |
defaultDownload()
默认下载方式(通知栏显示下载进度)
|
int |
getDownloadStatus()
获取当前应用下载状态
|
java.lang.String |
getIcon()
获取图标地址
|
java.lang.String |
getPackageName()
获取包名
|
float |
getProgress()
获取下载进度
|
java.lang.String |
getTuiaId()
获取tuia id
|
void |
installApp(int isRail)
安装应用
|
boolean |
isCancel()
是否暂停任务
|
boolean |
isShowNotification()
获取是否显示通知栏状态
|
void |
openApp(int isRail)
打开应用
|
void |
setCurrentProgress(float progress)
设置当前中断任务的进度
|
void |
setShowNotification(boolean showNotification,
java.lang.String icon)
设置是否显示通知栏
|
void defaultDownload()
void backgroundDownload()
void cancel()
float getProgress()
void installApp(int isRail)
isRail - : 是否通知栏int getDownloadStatus()
void setShowNotification(boolean showNotification,
java.lang.String icon)
boolean isShowNotification()
void openApp(int isRail)
isRail - : 是否通知栏boolean isCancel()
void setCurrentProgress(float progress)
java.lang.String getPackageName()
java.lang.String getIcon()
java.lang.String getTuiaId()