public class UpdateDialog extends BaseDialog implements android.view.View.OnClickListener, IDownloadEventHandler
| Modifier and Type | Method and Description |
|---|---|
void |
dismiss() |
boolean |
handleCompleted(java.io.File file)
处理下载完毕
|
void |
handleError(java.lang.Throwable throwable)
处理下载失败
|
void |
handleProgress(float progress)
处理下载中的进度更新
|
void |
handleStart()
处理开始下载
|
protected void |
initListeners()
初始化监听器
|
protected void |
initViews()
初始化控件
|
static UpdateDialog |
newInstance(android.content.Context context,
UpdateEntity updateEntity,
IPrompterProxy prompterProxy,
PromptEntity promptEntity)
获取更新提示
|
void |
onAttachedToWindow() |
void |
onClick(android.view.View view) |
void |
onDetachedFromWindow() |
UpdateDialog |
setIPrompterProxy(IPrompterProxy prompterProxy) |
UpdateDialog |
setPromptEntity(PromptEntity promptEntity) |
UpdateDialog |
setUpdateEntity(UpdateEntity updateEntity) |
void |
show() |
findViewById, getDrawable, getNavigationBarHeight, getString, isShouldHideInput, isSoftInputShow, isSoftInputShow, onTouchEvent, setDialogSizepublic static UpdateDialog newInstance(android.content.Context context, UpdateEntity updateEntity, IPrompterProxy prompterProxy, PromptEntity promptEntity)
updateEntity - 更新信息prompterProxy - 更新代理promptEntity - 提示器参数信息public UpdateDialog setPromptEntity(PromptEntity promptEntity)
protected void initViews()
BaseDialoginitViews in class BaseDialogprotected void initListeners()
BaseDialoginitListeners in class BaseDialogpublic void show()
public void dismiss()
public UpdateDialog setUpdateEntity(UpdateEntity updateEntity)
public UpdateDialog setIPrompterProxy(IPrompterProxy prompterProxy)
public void onClick(android.view.View view)
onClick in interface android.view.View.OnClickListenerpublic void handleStart()
IDownloadEventHandlerhandleStart in interface IDownloadEventHandlerpublic void handleProgress(float progress)
IDownloadEventHandlerhandleProgress in interface IDownloadEventHandlerprogress - 下载进度public boolean handleCompleted(java.io.File file)
IDownloadEventHandlerhandleCompleted in interface IDownloadEventHandlerfile - 下载文件true :安装false :不安装public void handleError(java.lang.Throwable throwable)
IDownloadEventHandlerhandleError in interface IDownloadEventHandlerthrowable - 失败原因public void onAttachedToWindow()
public void onDetachedFromWindow()