codecamp

UpdateManager

tt.getUpdateManager UpdateManager 实例,用来管理更新,可通过 接口获取实例。


方法

UpdateManager.applyUpdate()

应用更新包并重启

UpdateManager.onCheckForUpdate(function callback)

监听检查更新结果回调

UpdateManager.onUpdateReady(function callback)

监听更新包下载成功回调

UpdateManager.onUpdateFailed(function callback)

监听更新包下载失败回调

tt.getUpdateManager
UpdateManager.applyUpdate
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定