dlt.getUpdateManager
Introduction
Retrieve the globally unique version update manager used to manage updates for the mini-program.
Parameters
None
Sample Code
Page({
onLoad() {
const updateManager = dlt.getUpdateManager();
// 1. Automated update process
updateManager.onCheckForUpdate(function (res) {
// Callback after requesting new version information
console.log(res.hasUpdate);
});
},
});