UpdateManager.onCheckForUpdate
Introduction
Listen for events that request checking for updates from the backend. The mini-program automatically checks for updates every time it starts (including hot restarts), without the need for developers to trigger it manually.
Parameters
None
Sample Code
Page({
onLoad() {
const updateManager = dlt.getUpdateManager();
updateManager.onCheckForUpdate(function (res) {});
},
});