public class UpdateDialogActivity extends AppCompatActivity implements android.view.View.OnClickListener, IDownloadEventHandler
| Constructor and Description |
|---|
UpdateDialogActivity() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
handleCompleted(java.io.File file)
处理下载完毕
|
void |
handleError(java.lang.Throwable throwable)
处理下载失败
|
void |
handleProgress(float progress)
处理下载中的进度更新
|
void |
handleStart()
处理开始下载
|
void |
onClick(android.view.View view) |
void |
onCreate(android.os.Bundle savedInstanceState) |
boolean |
onKeyDown(int keyCode,
android.view.KeyEvent event) |
void |
onRequestPermissionsResult(int requestCode,
java.lang.String[] permissions,
int[] grantResults) |
void |
onStart() |
protected void |
onStop() |
static void |
show(android.content.Context context,
UpdateEntity updateEntity,
IPrompterProxy prompterProxy,
PromptEntity promptEntity)
显示更新提示
|
public static void show(android.content.Context context,
UpdateEntity updateEntity,
IPrompterProxy prompterProxy,
PromptEntity promptEntity)
updateEntity - 更新信息prompterProxy - 更新代理promptEntity - 提示器参数信息public void onCreate(android.os.Bundle savedInstanceState)
public void onStart()
public boolean onKeyDown(int keyCode,
android.view.KeyEvent event)
public void onClick(android.view.View view)
onClick in interface android.view.View.OnClickListenerpublic void onRequestPermissionsResult(int requestCode,
java.lang.String[] permissions,
int[] grantResults)
public 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 - 失败原因protected void onStop()